Commit 46738933 authored by Nicolas Lenz's avatar Nicolas Lenz

No new futures on deletion, success message clearer

parent d93df4fc
Pipeline #443 passed with stage
in 3 minutes and 14 seconds
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment