From 0a095f3a0a9856244bf60f04371cc9ba2dc4cc57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 21 Nov 2023 23:22:56 +0000 Subject: [PATCH] DoorMapEditor "toast" duration --- ui/src/components/admin/DoorMapEditor.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/ui/src/components/admin/DoorMapEditor.vue b/ui/src/components/admin/DoorMapEditor.vue index f1f21ce..73e678a 100644 --- a/ui/src/components/admin/DoorMapEditor.vue +++ b/ui/src/components/admin/DoorMapEditor.vue @@ -150,7 +150,13 @@ export default class extends Vue { this.loading_doors = true; this.load_doors() - .then(() => toast({ message: "Erfolgreich!", type: "is-success" })) + .then(() => + toast({ + message: "Erfolgreich!", + type: "is-success", + duration: 2e3, + }), + ) .catch(() => {}) .finally(() => (this.loading_doors = false)); } @@ -170,7 +176,13 @@ export default class extends Vue { this.save_doors() .then(() => { this.load_doors() - .then(() => toast({ message: "Erfolgreich!", type: "is-success" })) + .then(() => + toast({ + message: "Erfolgreich!", + type: "is-success", + duration: 2e3, + }), + ) .catch(() => {}) .finally(() => (this.saving_doors = false)); })