mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 13:25:40 +00:00 
			
		
		
		
	Display a message if a part does not have a category sit
This commit is contained in:
		| @@ -133,7 +133,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> { | |||||||
|     ); |     ); | ||||||
|  |  | ||||||
|     // Category information |     // Category information | ||||||
|     if (part.categoryName.isNotEmpty) { |     if (part.categoryName != null && part.categoryName.isNotEmpty) { | ||||||
|       tiles.add( |       tiles.add( | ||||||
|         ListTile( |         ListTile( | ||||||
|             title: Text("Part Category"), |             title: Text("Part Category"), | ||||||
| @@ -149,6 +149,14 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> { | |||||||
|             }, |             }, | ||||||
|           ) |           ) | ||||||
|       ); |       ); | ||||||
|  |     } else { | ||||||
|  |       tiles.add( | ||||||
|  |         ListTile( | ||||||
|  |           title: Text("Part Category"), | ||||||
|  |           subtitle: Text("No category set"), | ||||||
|  |           leading: FaIcon(FontAwesomeIcons.stream), | ||||||
|  |         ) | ||||||
|  |       ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // External link? |     // External link? | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user