mirror of
https://github.com/bitwarden/desktop.git
synced 2024-10-31 08:10:29 +01:00
[bug] Checkout all vaults before reloading process
This commit is contained in:
parent
c458b4d8a9
commit
f061f5bda9
@ -154,8 +154,8 @@ export class AppComponent implements OnInit {
|
||||
}
|
||||
this.notificationsService.updateConnection();
|
||||
this.updateAppMenu();
|
||||
this.systemService.startProcessReload();
|
||||
await this.systemService.clearPendingClipboard();
|
||||
await this.reloadProcess();
|
||||
break;
|
||||
case "authBlocked":
|
||||
this.router.navigate(["login"]);
|
||||
@ -187,8 +187,8 @@ export class AppComponent implements OnInit {
|
||||
}
|
||||
this.notificationsService.updateConnection();
|
||||
await this.updateAppMenu();
|
||||
this.systemService.startProcessReload();
|
||||
await this.systemService.clearPendingClipboard();
|
||||
await this.reloadProcess();
|
||||
break;
|
||||
case "reloadProcess":
|
||||
window.location.reload(true);
|
||||
@ -571,4 +571,16 @@ export class AppComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private async reloadProcess(): Promise<void> {
|
||||
const accounts = Object.keys(this.stateService.accounts.getValue());
|
||||
if (accounts.length > 0) {
|
||||
for (const userId in accounts) {
|
||||
if (!(await this.vaultTimeoutService.isLocked(accounts[userId]))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
await this.systemService.startProcessReload();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user