rename 'is_support' to 'contains_messages'
This commit is contained in:
@@ -86,7 +86,7 @@ const Category = RestModel.extend({
|
||||
custom_fields: this.get('custom_fields'),
|
||||
topic_template: this.get('topic_template'),
|
||||
suppress_from_homepage: this.get('suppress_from_homepage'),
|
||||
is_support: this.get("is_support"),
|
||||
contains_messages: this.get("contains_messages"),
|
||||
},
|
||||
type: this.get('id') ? 'PUT' : 'POST'
|
||||
});
|
||||
|
||||
@@ -71,8 +71,8 @@ const Composer = RestModel.extend({
|
||||
showCategoryChooser(isPrivateMessage, hasOptions, categoryId) {
|
||||
const manyCategories = Discourse.Category.list().length > 1;
|
||||
const category = Discourse.Category.findById(categoryId);
|
||||
const isSupport = category && category.get("is_support");
|
||||
return !isPrivateMessage && !isSupport && (hasOptions || manyCategories);
|
||||
const containsMessages = category && category.get("contains_messages");
|
||||
return !isPrivateMessage && !containsMessages && (hasOptions || manyCategories);
|
||||
},
|
||||
|
||||
privateMessage: function(){
|
||||
|
||||
Reference in New Issue
Block a user