snappymail/dev/Stores/Admin/App.js
djmaze 0eba94f671 Drop AbstractAppStore and
put the properties/observables where they belong
2020-10-12 19:46:41 +02:00

20 lines
394 B
JavaScript

import ko from 'ko';
class AppAdminStore {
constructor() {
this.weakPassword = ko.observable(false);
this.dataFolderAccess = ko.observable(false);
}
populate() {
this.weakPassword(!!rl.settings.get('WeakPassword'));
/*
if (settingsGet('Auth')) {
fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
}
*/
}
}
export default new AppAdminStore();