diff --git a/app/assets/javascripts/discourse/models/topic.js b/app/assets/javascripts/discourse/models/topic.js index 9a32ada28..badaca103 100644 --- a/app/assets/javascripts/discourse/models/topic.js +++ b/app/assets/javascripts/discourse/models/topic.js @@ -144,6 +144,7 @@ Discourse.Topic = Discourse.Model.extend({ archetypeObject: function() { return Discourse.Site.currentProp('archetypes').findProperty('id', this.get('archetype')); }.property('archetype'), + isPrivateMessage: Em.computed.equal('archetype', 'private_message'), toggleStatus: function(property) { diff --git a/app/assets/javascripts/discourse/templates/topic.js.handlebars b/app/assets/javascripts/discourse/templates/topic.js.handlebars index 92eb53918..fbf19bce0 100644 --- a/app/assets/javascripts/discourse/templates/topic.js.handlebars +++ b/app/assets/javascripts/discourse/templates/topic.js.handlebars @@ -12,7 +12,9 @@ {{/if}} {{#if editingTopic}} - {{categoryChooser valueAttribute="id" value=newCategoryId source=category_id}} + {{#unless isPrivateMessage}} + {{categoryChooser valueAttribute="id" value=newCategoryId source=category_id}} + {{/unless}} {{textField id='edit-title' value=newTitle}}