rename 'is_support' to 'contains_messages'

This commit is contained in:
Régis Hanol
2015-11-26 18:40:54 +01:00
parent e8a6ff4808
commit ba0df7e4cd
11 changed files with 18 additions and 13 deletions
@@ -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(){