From 62f84a311b87457b1707fb9514db1e2d1c6b4726 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Fri, 26 Jan 2024 14:41:09 +0100 Subject: [PATCH] feat: enable switch instance button in tauri builds Part-of: --- front/src/components/Sidebar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index a598adf57..cc9e733f2 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -103,6 +103,8 @@ watch(locale, (locale) => { }) const isProduction = import.meta.env.PROD +const isTauri = 'TAURI_ENV_PLATFORM' in import.meta.env + const showUserModal = ref(false) const showThemeModal = ref(false) @@ -535,7 +537,7 @@ onMounted(() => {