This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/flag-topic-button.js.es6
2014-06-23 12:37:38 -04:00

16 lines
387 B
JavaScript

import ButtonView from 'discourse/views/button';
export default ButtonView.extend({
classNames: ['flag-topic'],
textKey: 'topic.flag_topic.title',
helpKey: 'topic.flag_topic.help',
click: function() {
this.get('controller').send('showFlagTopic', this.get('controller.content'));
},
renderIcon: function(buffer) {
buffer.push("<i class='fa fa-flag'></i>");
}
});