mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +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();
|
this.systemService.cancelProcessReload();
|
||||||
break;
|
break;
|
||||||
case 'loggedOut':
|
case 'loggedOut':
|
||||||
|
if (this.modal != null) {
|
||||||
|
this.modal.close();
|
||||||
|
}
|
||||||
this.notificationsService.updateConnection();
|
this.notificationsService.updateConnection();
|
||||||
this.updateAppMenu();
|
this.updateAppMenu();
|
||||||
this.systemService.startProcessReload();
|
this.systemService.startProcessReload();
|
||||||
@@ -133,6 +136,9 @@ export class AppComponent implements OnInit {
|
|||||||
await this.lockService.lock(true);
|
await this.lockService.lock(true);
|
||||||
break;
|
break;
|
||||||
case 'locked':
|
case 'locked':
|
||||||
|
if (this.modal != null) {
|
||||||
|
this.modal.close();
|
||||||
|
}
|
||||||
this.router.navigate(['lock']);
|
this.router.navigate(['lock']);
|
||||||
this.notificationsService.updateConnection();
|
this.notificationsService.updateConnection();
|
||||||
this.updateAppMenu();
|
this.updateAppMenu();
|
||||||
|
|||||||
Reference in New Issue
Block a user