snappymail/dev/Stores/Admin/App.js

16 lines
384 B
JavaScript
Raw Normal View History

2015-11-19 01:32:29 +08:00
import ko from 'ko';
2021-03-10 18:44:48 +08:00
import { SettingsGet } from 'Common/Globals';
export const AppAdminStore = {
weakPassword: ko.observable(false),
dataFolderAccess: ko.observable(false),
2017-10-02 01:54:50 +08:00
populate: function() {
2021-03-10 18:44:48 +08:00
this.weakPassword(!!SettingsGet('WeakPassword'));
/*
2021-03-10 18:44:48 +08:00
SettingsGet('WeakPassword')
&& fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
*/
2017-10-02 01:54:50 +08:00
}
};