mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Merge pull request #804 from ZogStriP/fix-when-topic-is-closed-you-can-still-invite-someone-to-reply
FIX: when topic is closed, you can still invite someone to reply
This commit is contained in:
commit
d6feb8f37f
1 changed files with 6 additions and 1 deletions
|
@ -24,9 +24,14 @@ Discourse.TopicFooterButtonsView = Ember.ContainerView.extend({
|
|||
|
||||
// We hide some controls from private messages
|
||||
if (this.get('topic.can_invite_to')) {
|
||||
this.addObject(Discourse.ButtonView.create({
|
||||
this.addObject(Discourse.ButtonView.createWithMixins({
|
||||
textKey: 'topic.invite_reply.title',
|
||||
helpKey: 'topic.invite_reply.help',
|
||||
attributeBindings: ['disabled'],
|
||||
|
||||
disabled: function(){
|
||||
return this.get('controller.content.archived') || this.get('controller.content.closed');
|
||||
}.property('controller.content.archived', 'controller.content.closed'),
|
||||
|
||||
renderIcon: function(buffer) {
|
||||
buffer.push("<i class='icon icon-group'></i>");
|
||||
|
|
Loading…
Reference in a new issue