1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

reload on logout too, move to messages

This commit is contained in:
Kyle Spearrin
2019-02-25 15:07:44 -05:00
parent 5657105291
commit fdb822f8b3
3 changed files with 15 additions and 54 deletions

View File

@@ -111,10 +111,15 @@ export class AppComponent implements OnInit {
this.ngZone.run(async () => {
switch (message.command) {
case 'loggedIn':
case 'loggedOut':
case 'unlocked':
this.notificationsService.updateConnection();
this.updateAppMenu();
this.lockService.cancelLockReload();
break;
case 'loggedOut':
this.notificationsService.updateConnection();
this.updateAppMenu();
this.lockService.startLockReload();
break;
case 'logout':
this.logOut(!!message.expired);
@@ -123,9 +128,13 @@ export class AppComponent implements OnInit {
await this.lockService.lock(true);
break;
case 'locked':
this.router.navigate(['lock'], { queryParams: { refresh: true } });
this.router.navigate(['lock']);
this.notificationsService.updateConnection();
this.updateAppMenu();
this.lockService.startLockReload();
break;
case 'reloadProcess':
window.location.reload(true);
break;
case 'syncStarted':
break;