mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Move Knoin routOff, routOn, routReload & setHash to rl.route.*
This commit is contained in:
parent
03a40f3249
commit
467f615713
17 changed files with 83 additions and 111 deletions
|
|
@ -19,7 +19,7 @@ import * as Local from 'Storage/Client';
|
|||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { view, command, ViewType, routeOff, showScreenPopup, routeReload } from 'Knoin/Knoin';
|
||||
import { view, command, ViewType, showScreenPopup } from 'Knoin/Knoin';
|
||||
import { AbstractViewNext } from 'Knoin/AbstractViewNext';
|
||||
|
||||
import { rootAdmin } from 'Common/Links';
|
||||
|
|
@ -182,7 +182,7 @@ class LoginUserView extends AbstractViewNext {
|
|||
} else if (oData.Admin) {
|
||||
setTimeout(() => location.href = rootAdmin(), 100);
|
||||
} else {
|
||||
routeReload();
|
||||
rl.route.reload();
|
||||
}
|
||||
} else if (oData.ErrorCode) {
|
||||
this.submitRequest(false);
|
||||
|
|
@ -227,7 +227,7 @@ class LoginUserView extends AbstractViewNext {
|
|||
}
|
||||
|
||||
onShow() {
|
||||
routeOff();
|
||||
rl.route.off();
|
||||
}
|
||||
|
||||
onBuild() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue