mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Removed AppAdminStore
This commit is contained in:
parent
004eba6be2
commit
62cb918180
6 changed files with 11 additions and 39 deletions
|
|
@ -19,7 +19,6 @@ import Remote from 'Remote/Admin/Fetch';
|
|||
|
||||
import { ThemeStore } from 'Stores/Theme';
|
||||
import { LanguageStore } from 'Stores/Language';
|
||||
import { AppAdminStore } from 'Stores/Admin/App';
|
||||
import LanguagesPopupView from 'View/Popup/Languages';
|
||||
|
||||
export class GeneralAdminSettings {
|
||||
|
|
@ -47,12 +46,13 @@ export class GeneralAdminSettings {
|
|||
capaAdditionalAccounts: Settings.capa(Capa.AdditionalAccounts),
|
||||
capaIdentities: Settings.capa(Capa.Identities),
|
||||
capaAttachmentThumbnails: Settings.capa(Capa.AttachmentThumbnails),
|
||||
capaTemplates: Settings.capa(Capa.Templates)
|
||||
capaTemplates: Settings.capa(Capa.Templates),
|
||||
dataFolderAccess: false
|
||||
});
|
||||
|
||||
this.weakPassword = AppAdminStore.weakPassword;
|
||||
this.weakPassword = rl.app.weakPassword;
|
||||
|
||||
this.dataFolderAccess = AppAdminStore.dataFolderAccess;
|
||||
// fetch('./data/VERSION?' + Math.random()).then(response => this.dataFolderAccess(response.ok));
|
||||
|
||||
this.mainAttachmentLimit = ko
|
||||
.observable(pInt(SettingsGet('AttachmentLimit')) / (1024 * 1024))
|
||||
|
|
|
|||
|
|
@ -2,15 +2,13 @@ import { Capa } from 'Common/Enums';
|
|||
import { Settings, SettingsGet } from 'Common/Globals';
|
||||
import { addObservablesTo, addSubscribablesTo } from 'Common/Utils';
|
||||
|
||||
import { AppAdminStore } from 'Stores/Admin/App';
|
||||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
import { decorateKoCommands } from 'Knoin/Knoin';
|
||||
|
||||
export class SecurityAdminSettings {
|
||||
constructor() {
|
||||
this.weakPassword = AppAdminStore.weakPassword;
|
||||
this.weakPassword = rl.app.weakPassword;
|
||||
|
||||
addObservablesTo(this, {
|
||||
useLocalProxyForExternalImages: !!SettingsGet('UseLocalProxyForExternalImages'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue