From f1ae09d21bf52c7516bf5297832db3a27215d6fe Mon Sep 17 00:00:00 2001 From: "Aswin Dev P.S" Date: Mon, 11 Apr 2022 12:35:03 +0530 Subject: [PATCH] fix: SMTP shouldn't be configurable without IMAP enabled (#4428) * fix: Configure SMTP only if IMAP is enabled --- .../dashboard/components/SettingsSection.vue | 12 ++++++++++++ .../dashboard/i18n/locale/en/inboxMgmt.json | 4 +++- .../routes/dashboard/settings/inbox/ImapSettings.vue | 8 +++++++- .../routes/dashboard/settings/inbox/Settings.vue | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/components/SettingsSection.vue b/app/javascript/dashboard/components/SettingsSection.vue index 26caff02c..e700e9467 100644 --- a/app/javascript/dashboard/components/SettingsSection.vue +++ b/app/javascript/dashboard/components/SettingsSection.vue @@ -7,6 +7,10 @@

{{ subTitle }}

+

+ {{ $t('INBOX_MGMT.NOTE') }} + {{ note }} +

@@ -25,6 +29,10 @@ export default { type: String, required: true, }, + note: { + type: String, + default: '', + }, }, }; @@ -46,5 +54,9 @@ export default { .title--section { padding-right: var(--space-large); } + + .note { + font-weight: var(--font-weight-bold); + } } diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index 83a28de43..bf2652e09 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -470,6 +470,7 @@ "IMAP": { "TITLE": "IMAP", "SUBTITLE": "Set your IMAP details", + "NOTE_TEXT": "To enable SMTP, please configure IMAP.", "UPDATE": "Update IMAP settings", "TOGGLE_AVAILABILITY": "Enable IMAP configuration for this inbox", "TOGGLE_HELP": "Enabling IMAP will help the user to recieve email", @@ -529,6 +530,7 @@ "SSL_TLS": "SSL/TLS", "START_TLS": "STARTTLS", "OPEN_SSL_VERIFY_MODE": "Open SSL Verify Mode" - } + }, + "NOTE": "Note: " } } diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/ImapSettings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/ImapSettings.vue index 801e6fa98..c404c2872 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/ImapSettings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/ImapSettings.vue @@ -3,6 +3,7 @@
- +