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

[PM-26666] Timeout setting error (#16812)

* do not show organization error message for any invalid timeout

* use newValue rather than the current form value when early return

* add missing error message
This commit is contained in:
Nick Krantz
2025-10-15 14:32:38 -05:00
committed by GitHub
parent eee2aca111
commit fceaa6d39c
3 changed files with 4 additions and 12 deletions

View File

@@ -510,16 +510,11 @@ export class SettingsComponent implements OnInit, OnDestroy {
}
// Avoid saving 0 since it's useless as a timeout value.
if (this.form.value.vaultTimeout === 0) {
if (newValue === 0) {
return;
}
if (!this.form.controls.vaultTimeout.valid) {
this.platformUtilsService.showToast(
"error",
null,
this.i18nService.t("vaultTimeoutTooLarge"),
);
return;
}