mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Improve Settings handling
This commit is contained in:
parent
e7b1ce7509
commit
34b25eedea
39 changed files with 160 additions and 150 deletions
|
|
@ -1,13 +1,14 @@
|
|||
import ko from 'ko';
|
||||
import { SettingsGet } from 'Common/Globals';
|
||||
|
||||
export const AppAdminStore = {
|
||||
weakPassword: ko.observable(false),
|
||||
dataFolderAccess: ko.observable(false),
|
||||
|
||||
populate: function() {
|
||||
this.weakPassword(!!rl.settings.get('WeakPassword'));
|
||||
this.weakPassword(!!SettingsGet('WeakPassword'));
|
||||
/*
|
||||
rl.settings.get('WeakPassword')
|
||||
SettingsGet('WeakPassword')
|
||||
&& fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
import ko from 'ko';
|
||||
import { Capa } from 'Common/Enums';
|
||||
import { Settings } from 'Common/Globals';
|
||||
|
||||
export const CapaAdminStore = {
|
||||
populate: function() {
|
||||
let capa = rl.settings.capa;
|
||||
const capa = Settings.capa;
|
||||
this.additionalAccounts(capa(Capa.AdditionalAccounts));
|
||||
this.identities(capa(Capa.Identities));
|
||||
this.attachmentThumbnails(capa(Capa.AttachmentThumbnails));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue