mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-08 08:07:09 +00:00
Refactor loading overlay
This commit is contained in:
1 parent
d5a9f4310e
commit
e44d1ea5b4
22 files changed
+44
-31
No files matched your search
@@ -366,7 +366,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
onTap: () async {
|
||||
if (part.categoryId > 0) {
|
||||
|
||||
showLoadingOverlay(context);
|
||||
showLoadingOverlay();
|
||||
var cat = await InvenTreePartCategory().get(part.categoryId);
|
||||
hideLoadingOverlay();
|
||||
|
||||
@@ -646,7 +646,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
|
||||
if (part.isTrackable) {
|
||||
// read the next available serial number
|
||||
showLoadingOverlay(context);
|
||||
showLoadingOverlay();
|
||||
var response = await api.get("/api/part/${part.pk}/serial-numbers/", expectedStatusCode: null);
|
||||
hideLoadingOverlay();
|
||||
|
||||
|
||||
Reference in new issue
Block a user