mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
StockLocation display now improved
- Expandable list of sublocations - Expandable list of stockitems - Traverse upward (to higher locations) - Fix rendering of unknown part thumbnails
This commit is contained in:
parent
04ad279c58
commit
4c8bbd46e7
5 changed files with 154 additions and 46 deletions
|
|
@ -15,6 +15,7 @@ class InvenTreePartCategory extends InvenTreeModel {
|
|||
String get pathstring => jsondata['pathstring'] ?? '';
|
||||
|
||||
String get parentpathstring {
|
||||
// TODO - Drive the refactor tractor through this
|
||||
List<String> psplit = pathstring.split("/");
|
||||
|
||||
if (psplit.length > 0) {
|
||||
|
|
@ -24,7 +25,7 @@ class InvenTreePartCategory extends InvenTreeModel {
|
|||
String p = psplit.join("/");
|
||||
|
||||
if (p.isEmpty) {
|
||||
p = "Top level parts category";
|
||||
p = "Top level part category";
|
||||
}
|
||||
|
||||
return p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue