mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Cleanup AppUser and AdminApp
This commit is contained in:
parent
cf3801cba0
commit
893364d52d
5 changed files with 20 additions and 24 deletions
|
|
@ -10,12 +10,16 @@ import { LoginAdminScreen } from 'Screen/Admin/Login';
|
|||
import { startScreens } from 'Knoin/Knoin';
|
||||
import { AbstractApp } from 'App/Abstract';
|
||||
|
||||
class AdminApp extends AbstractApp {
|
||||
export class AdminApp extends AbstractApp {
|
||||
constructor() {
|
||||
super(Remote);
|
||||
this.weakPassword = ko.observable(false);
|
||||
}
|
||||
|
||||
refresh() {
|
||||
this.start();
|
||||
}
|
||||
|
||||
start() {
|
||||
if (!Settings.app('adminAllowed')) {
|
||||
rl.route.root();
|
||||
|
|
@ -28,5 +32,3 @@ class AdminApp extends AbstractApp {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default new AdminApp();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue