mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Improve some login/logout handling
This commit is contained in:
parent
b77854e421
commit
93d8b5a419
4 changed files with 11 additions and 16 deletions
|
|
@ -17,14 +17,16 @@ export class AbstractApp {
|
|||
this.Remote = Remote;
|
||||
}
|
||||
|
||||
logoutReload() {
|
||||
const url = logoutLink();
|
||||
|
||||
logoutReload(url) {
|
||||
url = url || logoutLink();
|
||||
if (location.href !== url) {
|
||||
setTimeout(() => location.href = url, 100);
|
||||
} else {
|
||||
rl.route.reload();
|
||||
}
|
||||
// this does not work due to ViewModelClass.__builded = true;
|
||||
// rl.settings.set('Auth', false);
|
||||
// rl.app.start();
|
||||
}
|
||||
|
||||
bootstart() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue