mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FEATURE: add a global notice whenever emails are disabled (disable_emails site setting)
This commit is contained in:
parent
6c4c542ae3
commit
20d2908c50
@ -10,6 +10,10 @@ export default Ember.Component.extend(StringBuffer, {
|
||||
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) {
|
||||
var topic_count = 0,
|
||||
post_count = 0;
|
||||
|
@ -103,6 +103,8 @@ en:
|
||||
|
||||
topic_admin_menu: "topic admin actions"
|
||||
|
||||
emails_are_disabled: "Administrators have disabled emails."
|
||||
|
||||
edit: 'edit the title and category of this topic'
|
||||
not_implemented: "That feature hasn't been implemented yet, sorry!"
|
||||
no_value: "No"
|
||||
|
@ -428,7 +428,9 @@ email:
|
||||
enum: 'TrustLevelSetting'
|
||||
email_prefix: ''
|
||||
email_site_title: ''
|
||||
disable_emails: false
|
||||
disable_emails:
|
||||
default: false
|
||||
client: true
|
||||
strip_images_from_short_emails: true
|
||||
short_email_length: 2800
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user