mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Improve Settings handling
This commit is contained in:
parent
e7b1ce7509
commit
34b25eedea
39 changed files with 160 additions and 150 deletions
|
|
@ -1,15 +1,15 @@
|
|||
import ko from 'ko';
|
||||
import { Settings, SettingsGet } from 'Common/Globals';
|
||||
|
||||
export const LanguageStore = {
|
||||
languages: ko.observableArray(),
|
||||
userLanguage: ko.observable(''),
|
||||
|
||||
populate: function() {
|
||||
const Settings = rl.settings,
|
||||
aLanguages = Settings.app('languages');
|
||||
const aLanguages = Settings.app('languages');
|
||||
this.languages(Array.isArray(aLanguages) ? aLanguages : []);
|
||||
this.language(Settings.get('Language'));
|
||||
this.userLanguage(Settings.get('UserLanguage'));
|
||||
this.language(SettingsGet('Language'));
|
||||
this.userLanguage(SettingsGet('UserLanguage'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue