2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 19:55:27 +00:00

Refactor loading overlay

This commit is contained in:
Oliver Walters
2024-12-11 21:45:43 +11:00
parent d5a9f4310e
commit e44d1ea5b4
22 changed files with 44 additions and 31 deletions

View File

@ -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,