From e425e408a24a84c0a75f4134514b9c7d4cbe5e23 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 14 Jun 2022 15:04:14 +0800 Subject: [PATCH 1/2] Fix: Fix missing default settings --- src/pages/Settings.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Settings.vue b/src/pages/Settings.vue index cb5f027c4..54d150091 100644 --- a/src/pages/Settings.vue +++ b/src/pages/Settings.vue @@ -146,7 +146,7 @@ export default { } if (this.settings.tlsExpiryNotifyDays === undefined) { - this.settings.tlsExpiryNotifyDays = []; + this.settings.tlsExpiryNotifyDays = [ 7, 14, 21 ]; } this.settingsLoaded = true; From f723930d118122e3bdca5ddc2038949ccdb63a72 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 14 Jun 2022 15:04:46 +0800 Subject: [PATCH 2/2] Fix: Unify design with Security page --- src/assets/app.scss | 8 ++++++++ src/components/settings/Notifications.vue | 6 +++--- src/components/settings/Security.vue | 18 +++--------------- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/src/assets/app.scss b/src/assets/app.scss index c3f2fa798..93ff3ff3a 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -473,6 +473,14 @@ textarea.form-control { outline: none !important; } +h5.settings-subheading::after { + content: ""; + display: block; + width: 50%; + padding-top: 8px; + border-bottom: 1px solid $dark-border-color; +} + // Localization @import "localization.scss"; diff --git a/src/components/settings/Notifications.vue b/src/components/settings/Notifications.vue index dcda9ad64..b99a12250 100644 --- a/src/components/settings/Notifications.vue +++ b/src/components/settings/Notifications.vue @@ -20,10 +20,10 @@ -
-

{{ $t("settingsCertificateExpiry") }}

+
+
{{ $t("settingsCertificateExpiry") }}

{{ $t("certificationExpiryDescription") }}

-
+
{{ day }} {{ $tc("day", day) }}

-
{{ $t("Change Password") }}
+
{{ $t("Change Password") }}