mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Removed AppAdminStore
This commit is contained in:
parent
004eba6be2
commit
62cb918180
6 changed files with 11 additions and 39 deletions
|
|
@ -27,7 +27,7 @@ export class AbstractApp {
|
|||
}
|
||||
|
||||
remote() {
|
||||
return null;
|
||||
return this.Remote || null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import 'External/Admin/ko';
|
|||
|
||||
import { Settings, SettingsGet } from 'Common/Globals';
|
||||
|
||||
import { AppAdminStore } from 'Stores/Admin/App';
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
import { SettingsAdminScreen } from 'Screen/Admin/Settings';
|
||||
|
|
@ -14,10 +13,7 @@ import { AbstractApp } from 'App/Abstract';
|
|||
class AdminApp extends AbstractApp {
|
||||
constructor() {
|
||||
super(Remote);
|
||||
}
|
||||
|
||||
remote() {
|
||||
return Remote;
|
||||
this.weakPassword = ko.observable(false);
|
||||
}
|
||||
|
||||
bootend() {
|
||||
|
|
@ -27,19 +23,16 @@ class AdminApp extends AbstractApp {
|
|||
bootstart() {
|
||||
super.bootstart();
|
||||
|
||||
AppAdminStore.populate();
|
||||
|
||||
this.hideLoading();
|
||||
|
||||
if (!Settings.app('allowAdminPanel')) {
|
||||
rl.route.root();
|
||||
setTimeout(() => location.href = '/', 1);
|
||||
} else if (SettingsGet('Auth')) {
|
||||
this.weakPassword(!!SettingsGet('WeakPassword'));
|
||||
startScreens([SettingsAdminScreen]);
|
||||
} else {
|
||||
if (SettingsGet('Auth')) {
|
||||
startScreens([SettingsAdminScreen]);
|
||||
} else {
|
||||
startScreens([LoginAdminScreen]);
|
||||
}
|
||||
startScreens([LoginAdminScreen]);
|
||||
}
|
||||
|
||||
this.bootend();
|
||||
|
|
|
|||
|
|
@ -136,10 +136,6 @@ class AppUser extends AbstractApp {
|
|||
shortcuts.add('escape,enter', '', KeyState.All, () => rl.Dropdowns.detectVisibility());
|
||||
}
|
||||
|
||||
remote() {
|
||||
return Remote;
|
||||
}
|
||||
|
||||
reload() {
|
||||
(Settings.app('inIframe') ? parent : window).location.reload();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue