Cleanup AppUser and AdminApp

This commit is contained in:
the-djmaze 2022-03-31 17:39:53 +02:00
parent cf3801cba0
commit 893364d52d
5 changed files with 20 additions and 24 deletions

View file

@ -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();