DoorMapEditor "toast" duration

This commit is contained in:
Jörn-Michael Miehe 2023-11-21 23:22:56 +00:00
parent 56db55681a
commit 0a095f3a0a

View file

@ -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));
}) })