DEV: Replace the Topic.category observer
Fixes an issue in Ember CLI environment
This commit is contained in:
parent
811c610108
commit
fe2c3e3e38
|
@ -227,10 +227,9 @@ const Topic = RestModel.extend({
|
||||||
return { type: "topic", id };
|
return { type: "topic", id };
|
||||||
},
|
},
|
||||||
|
|
||||||
@on("init")
|
@discourseComputed("category_id")
|
||||||
@observes("category_id")
|
category(categoryId) {
|
||||||
_categoryIdChanged() {
|
return Category.findById(categoryId);
|
||||||
this.set("category", Category.findById(this.category_id));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
categoryClass: fmt("category.fullSlug", "category-%@"),
|
categoryClass: fmt("category.fullSlug", "category-%@"),
|
||||||
|
|
Loading…
Reference in New Issue