mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Refactor loading overlay
This commit is contained in:
parent
d5a9f4310e
commit
e44d1ea5b4
22 changed files with 44 additions and 31 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue