mirror of
https://github.com/bitwarden/web
synced 2025-12-23 19:53:16 +00:00
changed implementation
This commit is contained in:
@@ -23,7 +23,6 @@ export class PreferencesComponent implements OnInit {
|
||||
vaultTimeouts: { name: string; value: number }[];
|
||||
localeOptions: any[];
|
||||
themeOptions: any[];
|
||||
static MIN_CUSTOM_MINUTES = 1;
|
||||
|
||||
vaultTimeout: FormControl = new FormControl(null);
|
||||
|
||||
@@ -83,7 +82,7 @@ export class PreferencesComponent implements OnInit {
|
||||
}
|
||||
|
||||
async submit() {
|
||||
if (this.vaultTimeout.value < PreferencesComponent.MIN_CUSTOM_MINUTES) {
|
||||
if (this.vaultTimeout.errors?.minTimeoutError) {
|
||||
this.platformUtilsService.showToast(
|
||||
"error",
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user