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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user