From 76f0f7af4cffe3fdf4f6a89d4c088a5a0f96d454 Mon Sep 17 00:00:00 2001 From: Thomas Fink Date: Tue, 21 May 2024 17:06:48 +0200 Subject: [PATCH] Fix theme on redirect --- frontend/src/core/core.router.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/core/core.router.ts b/frontend/src/core/core.router.ts index 2450916..9bff655 100644 --- a/frontend/src/core/core.router.ts +++ b/frontend/src/core/core.router.ts @@ -91,13 +91,13 @@ router.beforeEach(async (to, from, next) => { next({ path: to.path, query: to.query, replace: true }); } else { - vuetify.framework.theme.themes.light = adminTheme.themes.light; + vuetify.framework.theme.themes.light = kobitTheme.themes.light; + vuetify.framework.theme.themes.dark = kobitTheme.themes.dark; next({ path: '/' }); } - vuetify.framework.theme.themes.light = adminTheme.themes.light; - vuetify.framework.theme.themes.dark = adminTheme.themes.dark; } catch (error) { - vuetify.framework.theme.themes.light = adminTheme.themes.light; + vuetify.framework.theme.themes.light = kobitTheme.themes.light; + vuetify.framework.theme.themes.dark = kobitTheme.themes.dark; next({ path: '/' }); } } else {