Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Software
WMS App
Commits
46738933
Commit
46738933
authored
Feb 04, 2020
by
Nicolas Lenz
❄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No new futures on deletion, success message clearer
parent
d93df4fc
Pipeline
#443
passed with stage
in 3 minutes and 14 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
lib/main.dart
lib/main.dart
+2
-7
No files found.
lib/main.dart
View file @
46738933
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment