mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-29 07:16:07 +00:00
Refresh theme after login
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import ko from 'ko';
|
||||
|
||||
import { Settings, SettingsGet } from 'Common/Globals';
|
||||
import { changeTheme } from 'Common/Utils';
|
||||
|
||||
import { logoutLink } from 'Common/Links';
|
||||
import { i18nToNodes, initOnStartOrLangChange } from 'Common/Translator';
|
||||
@@ -36,7 +37,12 @@ export class AbstractApp {
|
||||
|
||||
refresh() {
|
||||
// rl.adminArea() || !translatorReload(false, );
|
||||
rl.adminArea() || LanguageStore.language(SettingsGet('Language'));
|
||||
rl.adminArea() || (
|
||||
LanguageStore.language(SettingsGet('Language'))
|
||||
& ThemeStore.populate()
|
||||
& changeTheme(SettingsGet('Theme'))
|
||||
);
|
||||
|
||||
this.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user