mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Fix changed lock method signature (#3378)
This commit is contained in:
committed by
GitHub
parent
90137936fa
commit
f4b2fc6d54
@@ -170,12 +170,12 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
break;
|
break;
|
||||||
case "lockVault":
|
case "lockVault":
|
||||||
await this.vaultTimeoutService.lock(true, message.userId);
|
await this.vaultTimeoutService.lock(message.userId);
|
||||||
break;
|
break;
|
||||||
case "lockAllVaults":
|
case "lockAllVaults":
|
||||||
for (const userId in this.stateService.accounts.getValue()) {
|
for (const userId in this.stateService.accounts.getValue()) {
|
||||||
if (userId != null) {
|
if (userId != null) {
|
||||||
await this.vaultTimeoutService.lock(true, userId);
|
await this.vaultTimeoutService.lock(userId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -593,7 +593,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
if (options[0] === timeout) {
|
if (options[0] === timeout) {
|
||||||
options[1] === "logOut"
|
options[1] === "logOut"
|
||||||
? this.logOut(false, userId)
|
? this.logOut(false, userId)
|
||||||
: await this.vaultTimeoutService.lock(true, userId);
|
: await this.vaultTimeoutService.lock(userId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user