mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-15 03:35:28 +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:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user