1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

close modal on lock/logout. resolves #255

This commit is contained in:
Kyle Spearrin
2019-06-01 22:08:46 -04:00
parent 2bb71e6af1
commit 4eb4b40e63

View File

@@ -118,6 +118,9 @@ export class AppComponent implements OnInit {
this.systemService.cancelProcessReload();
break;
case 'loggedOut':
if (this.modal != null) {
this.modal.close();
}
this.notificationsService.updateConnection();
this.updateAppMenu();
this.systemService.startProcessReload();
@@ -133,6 +136,9 @@ export class AppComponent implements OnInit {
await this.lockService.lock(true);
break;
case 'locked':
if (this.modal != null) {
this.modal.close();
}
this.router.navigate(['lock']);
this.notificationsService.updateConnection();
this.updateAppMenu();