Commit 46738933 authored by Nicolas Lenz's avatar Nicolas Lenz ❄️
Browse files

No new futures on deletion, success message clearer

parent d93df4fc
Loading
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -222,9 +222,7 @@ class ContainerInfo extends StatelessWidget {
                                        Navigator.of(context).pop();
                                        try {
                                            await deleteContainer(this.container.number);
                                            showMessage("Success!");
                                            containers = getContainers();
                                            locations = getLocations();
                                            showMessage("Successfully deleted!");
                                            log = getLog();
                                        } catch(e) {
                                            showMessage(e.toString());
@@ -272,9 +270,7 @@ class LocationInfo extends StatelessWidget {
                                        Navigator.of(context).pop();
                                        try {
                                            await deleteLocation(this.location.name);
                                            showMessage("Success!");
                                            containers = getContainers();
                                            locations = getLocations();
                                            showMessage("Successfully deleted!");
                                            log = getLog();
                                        } catch(e) {
                                            showMessage(e.toString());
@@ -440,7 +436,6 @@ class _ContainerFormState extends State<ContainerForm> {
                        try {
                            await widget.f(Allocation(int.parse(controllerContainer.text), controllerLocation.text, int.parse(controllerAmount.text)));
                            showMessage("Success!");
                            containers = getContainers();
                            log = getLog();
                        } catch(e) {
                            showMessage(e.toString());