From 75547291fed2d8d0c9bc0f6c316f2eaea9872f58 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 13 Jun 2024 19:20:57 +0200 Subject: [PATCH] Work around JS issues, improve toasts Signed-off-by: Knut Ahlers --- src/components/_headNav.vue | 8 ++++++++ src/components/_toast.vue | 14 ++++++++++++-- src/components/_toaster.vue | 8 +------- src/components/login.vue | 2 +- src/main.ts | 19 ++++++++++++------- 5 files changed, 34 insertions(+), 17 deletions(-) diff --git a/src/components/_headNav.vue b/src/components/_headNav.vue index 1bc4782..3be982b 100644 --- a/src/components/_headNav.vue +++ b/src/components/_headNav.vue @@ -29,6 +29,7 @@ class="nav-item dropdown" > import { defineComponent } from 'vue' +import { Dropdown } from 'bootstrap' export default defineComponent({ computed: { @@ -72,6 +74,12 @@ export default defineComponent({ }, }, + mounted() { + if (this.isLoggedIn) { + new Dropdown(this.$refs.userMenuToggle) + } + }, + name: 'TwitchBotEditorHeadNav', props: { diff --git a/src/components/_toast.vue b/src/components/_toast.vue index 6dbd231..aa54b38 100644 --- a/src/components/_toast.vue +++ b/src/components/_toast.vue @@ -24,7 +24,14 @@