mirror of
https://github.com/discourse/discourse.git
synced 2025-04-02 02:18:17 +08:00
REFACTOR: Remove an unused Topic model observer (#9723)
As far I can tell nothing sets categoryName on the Topic model. Didn't find anything in all-the-plugins/all-the-themes either.
This commit is contained in:
parent
b7d6eb3986
commit
a2bb33b6d7
@ -236,16 +236,6 @@ const Topic = RestModel.extend({
|
|||||||
this.set("category", Category.findById(this.category_id));
|
this.set("category", Category.findById(this.category_id));
|
||||||
},
|
},
|
||||||
|
|
||||||
@observes("categoryName")
|
|
||||||
_categoryNameChanged() {
|
|
||||||
const categoryName = this.categoryName;
|
|
||||||
let category;
|
|
||||||
if (categoryName) {
|
|
||||||
category = this.site.get("categories").findBy("name", categoryName);
|
|
||||||
}
|
|
||||||
this.set("category", category);
|
|
||||||
},
|
|
||||||
|
|
||||||
categoryClass: fmt("category.fullSlug", "category-%@"),
|
categoryClass: fmt("category.fullSlug", "category-%@"),
|
||||||
|
|
||||||
@discourseComputed("tags")
|
@discourseComputed("tags")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user