A platform for community discussion. Free, open, simple.
FIX: Move allow_unknown_sender_topic_replies outside SMTP/IMAP box (#13410)
Martin Brennana2d69ff4797e
diff --git a/app/assets/javascripts/discourse/app/templates/components/group-imap-email-settings.hbs b/app/assets/javascripts/discourse/app/templates/components/group-imap-email-settings.hbsindex 418e623fd70..e4d19aaf309 100644--- a/app/assets/javascripts/discourse/app/templates/components/group-imap-email-settings.hbs+++ b/app/assets/javascripts/discourse/app/templates/components/group-imap-email-settings.hbs@@ -70,15 +70,6 @@{{/if}}</div>- <div class="control-group">- <h3>{{i18n "groups.manage.email.imap_additional_settings"}}</h3>- <label class="control-group-inline" for="allow_unknown_sender_topic_replies">- {{input type="checkbox" name="allow_unknown_sender_topic_replies" id="allow_unknown_sender_topic_replies" checked=group.allow_unknown_sender_topic_replies tabindex="13"}}- <span>{{i18n "groups.manage.email.settings.allow_unknown_sender_topic_replies"}}</span>- </label>- <p>{{i18n "groups.manage.email.settings.allow_unknown_sender_topic_replies_hint"}}</p>- </div>-{{#if group.imap_updated_at}}<div class="group-email-last-updated-details for-imap"><small>diff --git a/app/assets/javascripts/discourse/app/templates/components/group-manage-email-settings.hbs b/app/assets/javascripts/discourse/app/templates/components/group-manage-email-settings.hbsindex 97f08c53483..2f20944a3a8 100644--- a/app/assets/javascripts/discourse/app/templates/components/group-manage-email-settings.hbs+++ b/app/assets/javascripts/discourse/app/templates/components/group-manage-email-settings.hbs@@ -33,6 +33,17 @@</div>{{/if}}+ <div class="group-manage-email-additional-settings-wrapper">+ <div class="control-group">+ <h3>{{i18n "groups.manage.email.imap_additional_settings"}}</h3>+ <label class="control-group-inline" for="allow_unknown_sender_topic_replies">+ {{input type="checkbox" name="allow_unknown_sender_topic_replies" id="allow_unknown_sender_topic_replies" checked=group.allow_unknown_sender_topic_replies tabindex="13"}}+ <span>{{i18n "groups.manage.email.settings.allow_unknown_sender_topic_replies"}}</span>+ </label>+ <p>{{i18n "groups.manage.email.settings.allow_unknown_sender_topic_replies_hint"}}</p>+ </div>+ </div>+<br>{{group-manage-save-button model=group disabled=(not emailSettingsValid) beforeSave=beforeSave afterSave=afterSave tabindex="14"}}</div>diff --git a/app/assets/stylesheets/common/base/group.scss b/app/assets/stylesheets/common/base/group.scssindex c39e6bee8fe..0ea87b2138c 100644--- a/app/assets/stylesheets/common/base/group.scss+++ b/app/assets/stylesheets/common/base/group.scss@@ -265,3 +265,7 @@ table.group-category-permissions {}}}++.group-manage-email-additional-settings-wrapper {+ margin-top: 1em;+}diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 721dcd25fed..3aa726602f0 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -734,7 +734,7 @@ en:settings:title: "Settings"allow_unknown_sender_topic_replies: "Allow unknown sender topic replies."- allow_unknown_sender_topic_replies_hint: "Allows unknown senders to reply to group topics. If this is not enabled, replies from email addresses not already included on the IMAP email thread or invited to the topic will create a new topic."+ allow_unknown_sender_topic_replies_hint: "Allows unknown senders to reply to group topics. If this is not enabled, replies from email addresses not already invited to the topic will create a new topic."mailboxes:synchronized: "Synchronized Mailbox"none_found: "No mailboxes were found in this email account."