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
1 changed files with 6 additions and 0 deletions

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();