mirror of
https://github.com/inventree/inventree-app.git
synced 2026-09-09 03:10:14 +00:00
display model pk entries (#851)
This commit is contained in:
@@ -198,6 +198,7 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
||||
|
||||
List<Widget> tiles = <Widget>[
|
||||
getCategoryDescriptionCard(),
|
||||
if (showPk && widget.category != null) pkTile(widget.category!.pk),
|
||||
Expanded(
|
||||
child: PaginatedPartCategoryList(filters, title: L10().subcategories),
|
||||
flex: 10,
|
||||
|
||||
@@ -355,6 +355,10 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
return tiles;
|
||||
}
|
||||
|
||||
if (showPk) {
|
||||
tiles.add(pkTile(part.pk));
|
||||
}
|
||||
|
||||
if (!part.isActive) {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
|
||||
Reference in New Issue
Block a user