1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-12 10:04:44 +01: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();