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