change text to notify when you are notifying in the flag dialog

This commit is contained in:
Sam 2013-04-19 10:34:06 +10:00
parent 1bd3744676
commit a6170db443
3 changed files with 11 additions and 1 deletions

View File

@ -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}}

View File

@ -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);

View File

@ -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."