From c369f3168abdf536d756f75d0738df4d2f085733 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Thu, 12 Dec 2024 10:43:33 +0100 Subject: [PATCH] fix(front): [WIP] replace `semantic-modal` with `ui/Modal` component --- front/src/components/Sidebar.vue | 34 +++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index 3e1b7b1a7..cb500ac7f 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -9,7 +9,7 @@ import { useRoute } from 'vue-router' import { useStore } from '~/store' import { useI18n } from 'vue-i18n' -import SemanticModal from '~/components/semantic/Modal.vue' +import Modal from '~/components/ui/Modal.vue' import UserModal from '~/components/common/UserModal.vue' import SearchBar from '~/components/audio/SearchBar.vue' import UserMenu from '~/components/common/UserMenu.vue' @@ -97,7 +97,7 @@ const moderationNotifications = computed(() => + store.state.ui.notifications.pendingReviewRequests ) -const showLanguageModal = ref(false) +const isLanguageModalOpen = ref(false) const locale = ref(i18nLocale.value) watch(locale, (locale) => { setI18nLanguage(locale) @@ -106,8 +106,8 @@ watch(locale, (locale) => { const isProduction = import.meta.env.PROD const isTauri = checkTauri() -const showUserModal = ref(false) -const showThemeModal = ref(false) +const isUserModalOpen = ref(false) +const isThemeModalOpen = ref(false) // const el = useCurrentElement() // watchEffect(() => { @@ -243,7 +243,7 @@ onMounted(() => { { - +

@@ -302,16 +304,16 @@ onMounted(() => {

-
- +

@@ -333,7 +335,7 @@ onMounted(() => {

-
+