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:
Miklós Márton authored and GitHub committed 2026-10-26 22:58:51 +11:00
1 parent 0ce701458e
commit ffe7332be2
1 file changed
+5 -1
+5 -1
View File
@@ -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),