FIX: Set allowUncategorized SelectKit option (#25440)

CategoryRow component uses allowUncategorized SelectKit option to
decide whether to show the "Uncategorized" category or not. This was
undefined which lead to "Uncategorized" category being always hidden
causing a minor visual glitch.
This commit is contained in:
Bianca Nenciu
2024-01-26 16:26:58 +02:00
committed by GitHub
parent 08b882097a
commit 76647d3a34

View File

@@ -2,6 +2,7 @@ import { computed } from "@ember/object";
import { readOnly } from "@ember/object/computed";
import { htmlSafe } from "@ember/template";
import { categoryBadgeHTML } from "discourse/helpers/category-link";
import { setting } from "discourse/lib/computed";
import DiscourseURL, {
getCategoryAndTagUrl,
getEditCategoryUrl,
@@ -39,6 +40,7 @@ export default ComboBoxComponent.extend({
displayCategoryDescription: "displayCategoryDescription",
headerComponent: "category-drop/category-drop-header",
parentCategory: false,
allowUncategorized: setting("allow_uncategorized_topics"),
},
modifyComponentForRow() {