mirror of
https://github.com/discourse/discourse.git
synced 2025-02-13 19:32:44 +08:00
17 lines
463 B
JavaScript
17 lines
463 B
JavaScript
import ButtonView from 'discourse/views/button';
|
|
|
|
export default ButtonView.extend({
|
|
textKey: 'topic.invite_reply.title',
|
|
helpKey: 'topic.invite_reply.help',
|
|
attributeBindings: ['disabled'],
|
|
disabled: Em.computed.or('controller.archived', 'controller.closed', 'controller.deleted'),
|
|
|
|
renderIcon: function(buffer) {
|
|
buffer.push("<i class='fa fa-users'></i>");
|
|
},
|
|
|
|
click: function() {
|
|
return this.get('controller').send('showInvite');
|
|
}
|
|
});
|