mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Show loading overlay for "toggle star" operation (#192)
* Show loading overlay for "toggle star" operation * Improve loading speed of PartDetail widget * Improve loading of StockDetail widget
This commit is contained in:
parent
e13817abed
commit
f652bebd83
2 changed files with 47 additions and 12 deletions
|
|
@ -129,11 +129,16 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
});
|
||||
});
|
||||
|
||||
attachmentCount = await InvenTreeStockItemAttachment().count(
|
||||
// Request the number of attachments
|
||||
InvenTreeStockItemAttachment().count(
|
||||
filters: {
|
||||
"stock_item": item.pk.toString()
|
||||
}
|
||||
);
|
||||
).then((int value) {
|
||||
setState(() {
|
||||
attachmentCount = value;
|
||||
});
|
||||
});
|
||||
|
||||
// Request information on labels available for this stock item
|
||||
if (InvenTreeAPI().pluginsEnabled()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue