mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Some small cleanups
This commit is contained in:
parent
04f4538700
commit
c0f494c758
5 changed files with 13 additions and 22 deletions
|
|
@ -9,17 +9,17 @@ export const ThemeStore = {
|
|||
userBackgroundHash: ko.observable(''),
|
||||
isMobile: ko.observable($htmlCL.contains('rl-mobile')),
|
||||
|
||||
populate: function(){
|
||||
populate: () => {
|
||||
const themes = Settings.app('themes');
|
||||
|
||||
this.themes(isArray(themes) ? themes : []);
|
||||
this.theme(SettingsGet('Theme'));
|
||||
if (!this.isMobile()) {
|
||||
this.userBackgroundName(SettingsGet('UserBackgroundName'));
|
||||
this.userBackgroundHash(SettingsGet('UserBackgroundHash'));
|
||||
ThemeStore.themes(isArray(themes) ? themes : []);
|
||||
ThemeStore.theme(SettingsGet('Theme'));
|
||||
if (!ThemeStore.isMobile()) {
|
||||
ThemeStore.userBackgroundName(SettingsGet('UserBackgroundName'));
|
||||
ThemeStore.userBackgroundHash(SettingsGet('UserBackgroundHash'));
|
||||
}
|
||||
|
||||
leftPanelDisabled(this.isMobile());
|
||||
leftPanelDisabled(ThemeStore.isMobile());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue