mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 12:15:20 +08:00
aeb5275648
Put dev/Storage/Settings.js in boots.js global rl.settings
17 lines
515 B
JavaScript
17 lines
515 B
JavaScript
import ko from 'ko';
|
|
|
|
class AbstractAppStore {
|
|
constructor() {
|
|
this.allowLanguagesOnSettings = ko.observable(true);
|
|
this.allowLanguagesOnLogin = ko.observable(true);
|
|
this.newMoveToFolder = ko.observable(true);
|
|
}
|
|
|
|
populate() {
|
|
this.allowLanguagesOnLogin(!!rl.settings.get('AllowLanguagesOnLogin'));
|
|
this.allowLanguagesOnSettings(!!rl.settings.get('AllowLanguagesOnSettings'));
|
|
this.newMoveToFolder(!!rl.settings.get('NewMoveToFolder'));
|
|
}
|
|
}
|
|
|
|
export { AbstractAppStore, AbstractAppStore as default };
|