mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-06 06:52:20 +08:00
15 lines
384 B
JavaScript
15 lines
384 B
JavaScript
import ko from 'ko';
|
|
import { SettingsGet } from 'Common/Globals';
|
|
|
|
export const AppAdminStore = {
|
|
weakPassword: ko.observable(false),
|
|
dataFolderAccess: ko.observable(false),
|
|
|
|
populate: function() {
|
|
this.weakPassword(!!SettingsGet('WeakPassword'));
|
|
/*
|
|
SettingsGet('WeakPassword')
|
|
&& fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
|
|
*/
|
|
}
|
|
};
|