snappymail/dev/Stores/Admin/App.js

21 lines
394 B
JavaScript
Raw Normal View History

2015-11-19 01:32:29 +08:00
import ko from 'ko';
class AppAdminStore {
2016-07-16 05:29:42 +08:00
constructor() {
this.weakPassword = ko.observable(false);
2017-10-02 01:54:50 +08:00
this.dataFolderAccess = ko.observable(false);
}
2015-11-19 01:32:29 +08:00
populate() {
this.weakPassword(!!rl.settings.get('WeakPassword'));
/*
2017-10-02 01:54:50 +08:00
if (settingsGet('Auth')) {
fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
2017-10-02 01:54:50 +08:00
}
*/
2017-10-02 01:54:50 +08:00
}
2015-11-19 01:32:29 +08:00
}
export default new AppAdminStore();