DoorMapEditor "toast" duration
This commit is contained in:
parent
56db55681a
commit
0a095f3a0a
1 changed files with 14 additions and 2 deletions
|
@ -150,7 +150,13 @@ export default class extends Vue {
|
||||||
this.loading_doors = true;
|
this.loading_doors = true;
|
||||||
|
|
||||||
this.load_doors()
|
this.load_doors()
|
||||||
.then(() => toast({ message: "Erfolgreich!", type: "is-success" }))
|
.then(() =>
|
||||||
|
toast({
|
||||||
|
message: "Erfolgreich!",
|
||||||
|
type: "is-success",
|
||||||
|
duration: 2e3,
|
||||||
|
}),
|
||||||
|
)
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
.finally(() => (this.loading_doors = false));
|
.finally(() => (this.loading_doors = false));
|
||||||
}
|
}
|
||||||
|
@ -170,7 +176,13 @@ export default class extends Vue {
|
||||||
this.save_doors()
|
this.save_doors()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.load_doors()
|
this.load_doors()
|
||||||
.then(() => toast({ message: "Erfolgreich!", type: "is-success" }))
|
.then(() =>
|
||||||
|
toast({
|
||||||
|
message: "Erfolgreich!",
|
||||||
|
type: "is-success",
|
||||||
|
duration: 2e3,
|
||||||
|
}),
|
||||||
|
)
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
.finally(() => (this.saving_doors = false));
|
.finally(() => (this.saving_doors = false));
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue