mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-02 07:26:50 +00:00
Code cleanup for part_detail view
This commit is contained in:
parent
013e977031
commit
aa24274cb3
@ -335,10 +335,8 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
// On order
|
// On order
|
||||||
if (part.onOrder > 0) {
|
|
||||||
tiles.add(
|
tiles.add(
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(L10().onOrder),
|
title: Text(L10().onOrder),
|
||||||
@ -350,14 +348,12 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tiles for an "assembly" part
|
// Tiles for an "assembly" part
|
||||||
if (part.isAssembly) {
|
if (part.isAssembly) {
|
||||||
|
|
||||||
if (part.bomItemCount > 0) {
|
|
||||||
tiles.add(
|
tiles.add(
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(L10().billOfMaterials),
|
title: Text(L10().billOfMaterials),
|
||||||
@ -368,7 +364,6 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (part.building > 0) {
|
if (part.building > 0) {
|
||||||
tiles.add(
|
tiles.add(
|
||||||
@ -386,7 +381,9 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
|
|
||||||
// Tiles for "component" part
|
// Tiles for "component" part
|
||||||
if (part.isComponent) {
|
if (part.isComponent) {
|
||||||
tiles.add(ListTile(
|
|
||||||
|
tiles.add(
|
||||||
|
ListTile(
|
||||||
title: Text(L10().usedIn),
|
title: Text(L10().usedIn),
|
||||||
subtitle: Text(L10().usedInDetails),
|
subtitle: Text(L10().usedInDetails),
|
||||||
leading: FaIcon(FontAwesomeIcons.sitemap),
|
leading: FaIcon(FontAwesomeIcons.sitemap),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user