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
|
|
@ -977,7 +977,7 @@ Future<void> launchApiForm(
|
|||
IconData icon = TablerIcons.device_floppy
|
||||
}) async {
|
||||
|
||||
showLoadingOverlay(context);
|
||||
showLoadingOverlay();
|
||||
|
||||
// List of fields defined by the server
|
||||
Map<String, dynamic> serverFields = {};
|
||||
|
|
@ -1229,7 +1229,7 @@ class _APIFormWidgetState extends State<APIFormWidget> {
|
|||
|
||||
if (widget.method == "POST") {
|
||||
|
||||
showLoadingOverlay(context);
|
||||
showLoadingOverlay();
|
||||
final response = await InvenTreeAPI().post(
|
||||
widget.url,
|
||||
body: data,
|
||||
|
|
@ -1240,7 +1240,7 @@ class _APIFormWidgetState extends State<APIFormWidget> {
|
|||
return response;
|
||||
|
||||
} else {
|
||||
showLoadingOverlay(context);
|
||||
showLoadingOverlay();
|
||||
final response = await InvenTreeAPI().patch(
|
||||
widget.url,
|
||||
body: data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue