mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:03:13 +08:00
FIX: regression preventing uncategorized badge to be shown
This commit is contained in:
parent
b0eed424f7
commit
5d00a97ae9
|
@ -43,7 +43,10 @@ export default SelectKitRowComponent.extend({
|
|||
|
||||
@computed("parentCategory")
|
||||
badgeForParentCategory(parentCategory) {
|
||||
return categoryBadgeHTML(parentCategory, {link: false}).htmlSafe();
|
||||
return categoryBadgeHTML(parentCategory, {
|
||||
link: this.get("categoryLink"),
|
||||
allowUncategorized: this.get("allowUncategorized")
|
||||
}).htmlSafe();
|
||||
},
|
||||
|
||||
@computed("parentCategoryid")
|
||||
|
|
|
@ -1,9 +1,20 @@
|
|||
import CategoryRowComponent from "select-kit/components/category-row";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
|
||||
export default CategoryRowComponent.extend({
|
||||
layoutName: "select-kit/templates/components/category-row",
|
||||
classNames: "none category-row",
|
||||
|
||||
@computed("category")
|
||||
badgeForCategory(category) {
|
||||
return categoryBadgeHTML(category, {
|
||||
link: this.get("categoryLink"),
|
||||
allowUncategorized: true,
|
||||
hideParent: this.get("hideParentCategory")
|
||||
}).htmlSafe();
|
||||
},
|
||||
|
||||
click() {
|
||||
this.sendAction("clearSelection");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user