mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
Send loggedOut/locked events on logout/lock event
This commit is contained in:
parent
ffb99efebb
commit
293f2d6131
@ -212,9 +212,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
this.loading = message.userId == null || message.userId === this.activeUserId;
|
||||
await this.logOut(message.logoutReason, message.userId);
|
||||
this.loading = false;
|
||||
this.messagingService.send("loggedOut");
|
||||
break;
|
||||
case "lockVault":
|
||||
await this.vaultTimeoutService.lock(message.userId);
|
||||
this.messagingService.send("locked", { userId: message.userId });
|
||||
break;
|
||||
case "lockAllVaults": {
|
||||
const currentUser = await firstValueFrom(
|
||||
@ -229,6 +231,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
|
||||
await this.vaultTimeoutService.lock(account);
|
||||
}
|
||||
this.messagingService.send("locked");
|
||||
break;
|
||||
}
|
||||
case "locked":
|
||||
|
Loading…
Reference in New Issue
Block a user