Fixed theme name

pull/2207/head
Cagatay Civici 2022-02-24 00:01:12 +03:00
parent 0e1712ebbe
commit eb5f453b24
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ import './assets/styles/flags.css';
router.beforeEach(function (to, from, next) { router.beforeEach(function (to, from, next) {
if (to.name === 'home' && from.name) { if (to.name === 'home' && from.name) {
const newTheme = app.config.globalProperties.$appState.darkTheme ? 'lara-dark-indigo' : 'lara-light-indigo'; const newTheme = app.config.globalProperties.$appState.darkTheme ? 'lara-dark-blue' : 'lara-light-blue';
EventBus.emit('theme-change', { theme: newTheme, dark: app.config.globalProperties.$appState.darkTheme }); EventBus.emit('theme-change', { theme: newTheme, dark: app.config.globalProperties.$appState.darkTheme });
} }
next(); next();