mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
17 lines
416 B
JavaScript
17 lines
416 B
JavaScript
import ButtonView from 'discourse/views/button';
|
|
import { iconHTML } from 'discourse-common/helpers/fa-icon';
|
|
|
|
export default ButtonView.extend({
|
|
classNames: ['flag-topic'],
|
|
textKey: 'topic.flag_topic.title',
|
|
helpKey: 'topic.flag_topic.help',
|
|
|
|
click() {
|
|
this.get('controller').send('showFlagTopic', this.get('controller.content'));
|
|
},
|
|
|
|
renderIcon(buffer) {
|
|
buffer.push(iconHTML('flag'));
|
|
}
|
|
});
|