mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
fixed comments
This commit is contained in:
@@ -82,20 +82,15 @@ export class PreferencesComponent implements OnInit {
|
||||
}
|
||||
|
||||
async submit() {
|
||||
if (this.vaultTimeout.errors?.minTimeoutError) {
|
||||
if (!this.vaultTimeout.valid) {
|
||||
this.platformUtilsService.showToast(
|
||||
"error",
|
||||
null,
|
||||
this.i18nService.t("vaultCustomTimeoutMinimum")
|
||||
this.i18nService.t("vaultTimeoutRangeError")
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.vaultTimeout.valid) {
|
||||
this.platformUtilsService.showToast("error", null, this.i18nService.t("vaultTimeoutToLarge"));
|
||||
return;
|
||||
}
|
||||
|
||||
await this.vaultTimeoutService.setVaultTimeoutOptions(
|
||||
this.vaultTimeout.value,
|
||||
this.vaultTimeoutAction
|
||||
|
||||
@@ -4434,6 +4434,9 @@
|
||||
"vaultCustomTimeoutMinimum": {
|
||||
"message": "Minimum custom timeout is 1 minute."
|
||||
},
|
||||
"vaultTimeoutRangeError": {
|
||||
"message": "Vault Timeout is not within allowed range."
|
||||
},
|
||||
"disablePersonalVaultExport": {
|
||||
"message": "Disable Personal Vault Export"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user