From 334540187eaaa708c86ae3536618547e3f548aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 12 Sep 2023 16:11:03 +0000 Subject: [PATCH] Drawer better toggle logic --- ui/src/components/bulma/Drawer.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/bulma/Drawer.vue b/ui/src/components/bulma/Drawer.vue index 3dfdf70..e4213d8 100644 --- a/ui/src/components/bulma/Drawer.vue +++ b/ui/src/components/bulma/Drawer.vue @@ -53,12 +53,12 @@ export default class extends Vue { public toggle() { this.is_open = !this.is_open; - this.refresh(); + if (this.is_open) this.$emit("open"); } public refresh() { - if (!this.is_open) return; - this.$emit("open"); + this.is_open = false; + this.toggle(); } }