mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 15:57:37 +08:00
32 lines
808 B
JavaScript
32 lines
808 B
JavaScript
|
|
import ko from 'ko';
|
|
import * as Settings from 'Storage/Settings';
|
|
|
|
import {AbstractAppStore} from 'Stores/AbstractApp';
|
|
|
|
class AppAdminStore extends AbstractAppStore
|
|
{
|
|
constructor()
|
|
{
|
|
super();
|
|
|
|
this.determineUserLanguage = ko.observable(false);
|
|
this.determineUserDomain = ko.observable(false);
|
|
|
|
this.weakPassword = ko.observable(false);
|
|
this.useLocalProxyForExternalImages = ko.observable(false);
|
|
}
|
|
|
|
populate() {
|
|
|
|
super.populate();
|
|
|
|
this.determineUserLanguage(!!Settings.settingsGet('DetermineUserLanguage'));
|
|
this.determineUserDomain(!!Settings.settingsGet('DetermineUserDomain'));
|
|
|
|
this.weakPassword(!!Settings.settingsGet('WeakPassword'));
|
|
this.useLocalProxyForExternalImages(!!Settings.settingsGet('UseLocalProxyForExternalImages'));
|
|
}
|
|
}
|
|
|
|
module.exports = new AppAdminStore();
|