diff --git a/app/assets/javascripts/discourse/views/topic_footer_buttons_view.js.coffee b/app/assets/javascripts/discourse/views/topic_footer_buttons_view.js.coffee index 4c9d4c604ee..f2b41fc8bf9 100644 --- a/app/assets/javascripts/discourse/views/topic_footer_buttons_view.js.coffee +++ b/app/assets/javascripts/discourse/views/topic_footer_buttons_view.js.coffee @@ -38,6 +38,7 @@ window.Discourse.TopicFooterButtonsView = Ember.ContainerView.extend @addObject Discourse.ButtonView.createWithMixins classNames: ['btn', 'btn-primary', 'create'] + attributeBindings: ['disabled'] text: (-> archetype = @get('controller.content.archetype') return customTitle if customTitle = @get("parentView.replyButtonText#{archetype.capitalize()}") @@ -46,6 +47,7 @@ window.Discourse.TopicFooterButtonsView = Ember.ContainerView.extend renderIcon: (buffer) -> buffer.push("") click: -> @get('controller').reply() helpKey: 'topic.reply.help' + disabled: !@get('controller.content.can_create_post') unless topic.get('isPrivateMessage') @addObject Discourse.DropdownButtonView.createWithMixins