1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

PM-5501 - VaultTimeoutSettingsSvc State Provider Migration - Small bugfixes (#9164)

* PM-5501 - VaultTimeoutSettingsSvc - fix setVaultTimeoutOptions condition which needed to use never instead of null.

* PM-5501 - Fix browser and desktop not showing the never lock warning

* PM-5501 - Use true equality.
This commit is contained in:
Jared Snider
2024-05-13 17:04:26 -04:00
committed by GitHub
parent bf57a181eb
commit 66f5d90803
4 changed files with 18 additions and 6 deletions

View File

@@ -254,7 +254,7 @@ export class AccountSecurityComponent implements OnInit {
}
async saveVaultTimeout(previousValue: VaultTimeout, newValue: VaultTimeout) {
if (newValue == null) {
if (newValue === VaultTimeoutStringType.Never) {
const confirmed = await this.dialogService.openSimpleDialog({
title: { key: "warning" },
content: { key: "neverLockWarning" },
@@ -289,7 +289,7 @@ export class AccountSecurityComponent implements OnInit {
newValue,
vaultTimeoutAction,
);
if (newValue == null) {
if (newValue === VaultTimeoutStringType.Never) {
this.messagingService.send("bgReseedStorage");
}
}