diff --git a/apps/web/src/app/settings/preferences.component.html b/apps/web/src/app/settings/preferences.component.html index 828c251989..984ae7536a 100644 --- a/apps/web/src/app/settings/preferences.component.html +++ b/apps/web/src/app/settings/preferences.component.html @@ -1,106 +1,77 @@ - {{ "preferencesDesc" | i18n }} - - - - - - {{ - "vaultTimeoutPolicyWithActionInEffect" - | i18n: policy.timeout.hours : policy.timeout.minutes : (policy.action | i18n) - }} - - - {{ "vaultTimeoutPolicyInEffect" | i18n: policy.timeout.hours : policy.timeout.minutes }} - - - {{ "vaultTimeoutActionPolicyInEffect" | i18n: (policy.action | i18n) }} - - - - - - + {{ "preferencesDesc" | i18n }} + + + + {{ + "vaultTimeoutPolicyWithActionInEffect" + | i18n: policy.timeout.hours : policy.timeout.minutes : (policy.action | i18n) + }} + + + {{ "vaultTimeoutPolicyInEffect" | i18n: policy.timeout.hours : policy.timeout.minutes }} + + + {{ "vaultTimeoutActionPolicyInEffect" | i18n: (policy.action | i18n) }} + + + + - 1" class="form-group"> - {{ "vaultTimeoutAction" | i18n }} - 1" + > + {{ "vaultTimeoutAction" | i18n }} + - - - {{ "lock" | i18n }} - {{ "vaultTimeoutActionLockDesc" | i18n }} - - - {{ "lock" | i18n }} + {{ "vaultTimeoutActionLockDesc" | i18n }} + + - - - {{ "logOut" | i18n }} - {{ "vaultTimeoutActionLogOutDesc" | i18n }} - - - + {{ "logOut" | i18n }} + {{ "vaultTimeoutActionLogOutDesc" | i18n }} + + - - - - - {{ "language" | i18n }} - - - - - - {{ o.name }} - - {{ "languageDesc" | i18n }} - - - - - - - - {{ "enableFavicon" | i18n }} - + + {{ "language" | i18n }} + + + + + + + {{ "languageDesc" | i18n }} + + + + {{ "enableFavicon" | i18n }} + - - {{ "faviconDesc" | i18n }} - - - - - {{ "theme" | i18n }} - - {{ o.name }} - - {{ "themeDesc" | i18n }} - - - - - {{ "save" | i18n }} - + + {{ "faviconDesc" | i18n }} + + + {{ "theme" | i18n }} + + + + {{ "themeDesc" | i18n }} + + {{ "save" | i18n }} diff --git a/apps/web/src/app/settings/preferences.component.ts b/apps/web/src/app/settings/preferences.component.ts index a6443b453e..1092a31d5c 100644 --- a/apps/web/src/app/settings/preferences.component.ts +++ b/apps/web/src/app/settings/preferences.component.ts @@ -158,7 +158,7 @@ export class PreferencesComponent implements OnInit { this.form.setValue(initialFormValues, { emitEvent: false }); } - async submit() { + submit = async () => { if (!this.form.controls.vaultTimeout.valid) { this.platformUtilsService.showToast( "error", @@ -188,7 +188,7 @@ export class PreferencesComponent implements OnInit { this.i18nService.t("preferencesUpdated"), ); } - } + }; ngOnDestroy() { this.destroy$.next();
{{ "preferencesDesc" | i18n }}