mirror of
https://github.com/inventree/inventree-app.git
synced 2026-11-17 03:14:49 +00:00
Display part category description in the lists if set (#891)
* Display part category description in the lists if set * Ran dat format
This commit is contained in:
1 parent
0ce701458e
commit
ffe7332be2
1 file changed
+5
-1
@@ -102,7 +102,11 @@ class _PaginatedPartCategoryListState
|
||||
InvenTreePartCategory category = model as InvenTreePartCategory;
|
||||
|
||||
return ListTile(
|
||||
title: Text(category.name),
|
||||
title: Text(
|
||||
category.description == ""
|
||||
? (category.name)
|
||||
: (category.name + " - " + category.description),
|
||||
),
|
||||
subtitle: Text(category.pathstring),
|
||||
trailing: LargeText("${category.partcount}", size: 14),
|
||||
leading: category.customIcon == null ? null : Icon(category.customIcon),
|
||||
|
||||
Reference in new issue
Block a user