mirror of
https://github.com/discourse/discourse.git
synced 2025-02-01 00:24:18 +08:00
add glyphs to flag dialog action button
This commit is contained in:
parent
ab319de4f9
commit
b369609903
|
@ -62,9 +62,9 @@ export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
|
|||
|
||||
submitText: function(){
|
||||
if (this.get('selected.is_custom_flag')) {
|
||||
return I18n.t(this.get('flagTopic') ? "flagging_topic.notify_action" : "flagging.notify_action");
|
||||
return "<i class="fa fa-envelope"></i>" + I18n.t(this.get('flagTopic') ? "flagging_topic.notify_action" : "flagging.notify_action");
|
||||
} else {
|
||||
return I18n.t(this.get('flagTopic') ? "flagging_topic.action" : "flagging.action");
|
||||
return "<i class="fa fa-flag"></i>" + I18n.t(this.get('flagTopic') ? "flagging_topic.action" : "flagging.action");
|
||||
}
|
||||
}.property('selected.is_custom_flag'),
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user