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}}
|
||||
<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>
|
||||
{{/if}}
|
||||
|
|
|
@ -73,6 +73,15 @@ Discourse.FlagView = Discourse.ModalBodyView.extend({
|
|||
return false;
|
||||
}).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() {
|
||||
this.set('postActionTypeId', null);
|
||||
|
||||
|
|
|
@ -727,6 +727,7 @@ en:
|
|||
flagging:
|
||||
title: 'Why are you flagging this post?'
|
||||
action: 'Flag Post'
|
||||
notify_action: 'Notify'
|
||||
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_moderators: "Why does this post require moderator attention? Let us know specifically what you are concerned about, and provide relevant links where possible."
|
||||
|
|
Loading…
Reference in New Issue