mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Display a message if a part does not have a category sit
This commit is contained in:
parent
5d62344cc7
commit
9d929c7741
1 changed files with 9 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||
);
|
||||
|
||||
// Category information
|
||||
if (part.categoryName.isNotEmpty) {
|
||||
if (part.categoryName != null && part.categoryName.isNotEmpty) {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue