mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-05 22:42:25 +08:00
0eba94f671
put the properties/observables where they belong
20 lines
394 B
JavaScript
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();
|