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';
|
2015-01-27 05:06:00 +08:00
|
|
|
|
2021-02-17 21:40:21 +08:00
|
|
|
export const AppAdminStore = {
|
|
|
|
weakPassword: ko.observable(false),
|
|
|
|
dataFolderAccess: ko.observable(false),
|
2017-10-02 01:54:50 +08:00
|
|
|
|
2021-02-17 21:40:21 +08:00
|
|
|
populate: function() {
|
2021-03-10 18:44:48 +08:00
|
|
|
this.weakPassword(!!SettingsGet('WeakPassword'));
|
2020-07-22 20:54:21 +08:00
|
|
|
/*
|
2021-03-10 18:44:48 +08:00
|
|
|
SettingsGet('WeakPassword')
|
2021-02-17 21:40:21 +08:00
|
|
|
&& fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
|
2020-07-22 20:54:21 +08:00
|
|
|
*/
|
2017-10-02 01:54:50 +08:00
|
|
|
}
|
2021-02-17 21:40:21 +08:00
|
|
|
};
|