mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 23:34:35 +08:00
change text to notify when you are notifying in the flag dialog
This commit is contained in:
parent
1bd3744676
commit
a6170db443
@ -31,6 +31,6 @@
|
|||||||
|
|
||||||
{{#if view.showSubmit}}
|
{{#if view.showSubmit}}
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class='btn btn-primary' {{action createFlag target="view"}}>{{i18n flagging.action}}</button>
|
<button class='btn btn-primary' {{action createFlag target="view"}}>{{view.submitText}}</button>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -73,6 +73,15 @@ Discourse.FlagView = Discourse.ModalBodyView.extend({
|
|||||||
return false;
|
return false;
|
||||||
}).property('isCustomFlag', 'selected.customMessageLength', 'postActionTypeId'),
|
}).property('isCustomFlag', 'selected.customMessageLength', 'postActionTypeId'),
|
||||||
|
|
||||||
|
submitText: function(){
|
||||||
|
var action = this.get('selected');
|
||||||
|
if (this.get('selected.is_custom_flag')) {
|
||||||
|
return Em.String.i18n("flagging.notify_action");
|
||||||
|
} else {
|
||||||
|
return Em.String.i18n("flagging.action");
|
||||||
|
}
|
||||||
|
}.property('selected'),
|
||||||
|
|
||||||
didInsertElement: function() {
|
didInsertElement: function() {
|
||||||
this.set('postActionTypeId', null);
|
this.set('postActionTypeId', null);
|
||||||
|
|
||||||
|
@ -727,6 +727,7 @@ en:
|
|||||||
flagging:
|
flagging:
|
||||||
title: 'Why are you flagging this post?'
|
title: 'Why are you flagging this post?'
|
||||||
action: 'Flag Post'
|
action: 'Flag Post'
|
||||||
|
notify_action: 'Notify'
|
||||||
cant: "Sorry, you can't flag this post at this time."
|
cant: "Sorry, you can't flag this post at this time."
|
||||||
custom_placeholder_notify_user: "Why does this post require you to speak to this user directly and privately? Be specific, be constructive, and always be kind."
|
custom_placeholder_notify_user: "Why does this post require you to speak to this user directly and privately? Be specific, be constructive, and always be kind."
|
||||||
custom_placeholder_notify_moderators: "Why does this post require moderator attention? Let us know specifically what you are concerned about, and provide relevant links where possible."
|
custom_placeholder_notify_moderators: "Why does this post require moderator attention? Let us know specifically what you are concerned about, and provide relevant links where possible."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user