Improve Squire toolbar

Cleanup some JS code
This commit is contained in:
djmaze 2021-02-22 17:28:54 +01:00
parent e52b9abc61
commit 0158a5fe1e
9 changed files with 163 additions and 200 deletions

View file

@ -20,7 +20,6 @@ import { decorateKoCommands, showScreenPopup } from 'Knoin/Knoin';
import { AbstractViewCenter } from 'Knoin/AbstractViews';
import { Settings } from 'Common/Globals';
import { rootAdmin } from 'Common/Links';
import { LanguagesPopupView } from 'View/Popup/Languages';
@ -161,8 +160,6 @@ class LoginUserView extends AbstractViewCenter {
this.submitRequest(false);
setTimeout(() => this.querySelector('.inputAdditionalCode').focus(), 100);
} else if (oData.Admin) {
setTimeout(() => location.href = rootAdmin(), 100);
} else {
rl.route.reload();
}