mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add a global notice whenever emails are disabled (disable_emails site setting)
This commit is contained in:
parent
6c4c542ae3
commit
20d2908c50
app/assets/javascripts/discourse/components
config
@ -10,6 +10,10 @@ export default Ember.Component.extend(StringBuffer, {
|
|||||||
notices.push(I18n.t("read_only_mode.enabled"));
|
notices.push(I18n.t("read_only_mode.enabled"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.siteSettings.disable_emails) {
|
||||||
|
notices.push(I18n.t("emails_are_disabled"));
|
||||||
|
}
|
||||||
|
|
||||||
if (Discourse.User.currentProp('admin') && this.siteSettings.show_create_topics_notice) {
|
if (Discourse.User.currentProp('admin') && this.siteSettings.show_create_topics_notice) {
|
||||||
var topic_count = 0,
|
var topic_count = 0,
|
||||||
post_count = 0;
|
post_count = 0;
|
||||||
|
@ -103,6 +103,8 @@ en:
|
|||||||
|
|
||||||
topic_admin_menu: "topic admin actions"
|
topic_admin_menu: "topic admin actions"
|
||||||
|
|
||||||
|
emails_are_disabled: "Administrators have disabled emails."
|
||||||
|
|
||||||
edit: 'edit the title and category of this topic'
|
edit: 'edit the title and category of this topic'
|
||||||
not_implemented: "That feature hasn't been implemented yet, sorry!"
|
not_implemented: "That feature hasn't been implemented yet, sorry!"
|
||||||
no_value: "No"
|
no_value: "No"
|
||||||
|
@ -428,7 +428,9 @@ email:
|
|||||||
enum: 'TrustLevelSetting'
|
enum: 'TrustLevelSetting'
|
||||||
email_prefix: ''
|
email_prefix: ''
|
||||||
email_site_title: ''
|
email_site_title: ''
|
||||||
disable_emails: false
|
disable_emails:
|
||||||
|
default: false
|
||||||
|
client: true
|
||||||
strip_images_from_short_emails: true
|
strip_images_from_short_emails: true
|
||||||
short_email_length: 2800
|
short_email_length: 2800
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user