mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Improve Settings handling
This commit is contained in:
parent
e7b1ce7509
commit
34b25eedea
39 changed files with 160 additions and 150 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { StorageResultType, Notification } from 'Common/Enums';
|
||||
import { Settings } from 'Common/Globals';
|
||||
import { getNotification } from 'Common/Translator';
|
||||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
|
@ -12,7 +13,7 @@ class LoginAdminView extends AbstractViewCenter {
|
|||
constructor() {
|
||||
super('Admin/Login', 'AdminLogin');
|
||||
|
||||
this.hideSubmitButton = rl.settings.app('hideSubmitButton');
|
||||
this.hideSubmitButton = Settings.app('hideSubmitButton');
|
||||
|
||||
this.addObservables({
|
||||
login: '',
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ import { PackageAdminStore } from 'Stores/Admin/Package';
|
|||
|
||||
import { AbstractViewRight } from 'Knoin/AbstractViews';
|
||||
|
||||
import { leftPanelDisabled } from 'Common/Globals';
|
||||
import { leftPanelDisabled, Settings } from 'Common/Globals';
|
||||
|
||||
class PaneSettingsAdminView extends AbstractViewRight {
|
||||
constructor() {
|
||||
super('Admin/Settings/Pane', 'AdminPane');
|
||||
|
||||
this.version = ko.observable(rl.settings.app('version'));
|
||||
this.version = ko.observable(Settings.app('version'));
|
||||
|
||||
this.leftPanelDisabled = leftPanelDisabled;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue