mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
Code cleanup for part_detail view
This commit is contained in:
parent
013e977031
commit
aa24274cb3
1 changed files with 34 additions and 37 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue