snappymail/dev/Stores/Admin/App.js

15 lines
346 B
JavaScript
Raw Normal View History

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