diff --git a/app/assets/javascripts/discourse/controllers/invite.js.es6 b/app/assets/javascripts/discourse/controllers/invite.js.es6 index 63314163255..f7dd557a188 100644 --- a/app/assets/javascripts/discourse/controllers/invite.js.es6 +++ b/app/assets/javascripts/discourse/controllers/invite.js.es6 @@ -52,9 +52,7 @@ export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, { @property isPrivateTopic **/ - isPrivateTopic: function() { - return this.get('invitingToTopic') && this.get('model.category.read_restricted'); - }.property('model'), + isPrivateTopic: Em.computed.and('invitingToTopic', 'model.category.read_restricted'), /** Instructional text for the modal.