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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user