This reverts commit 1df473b530
.
This commit is contained in:
parent
b205abadfc
commit
d10b1aaedd
|
@ -17,8 +17,7 @@ export default ComboBoxComponent.extend({
|
||||||
|
|
||||||
selectKitOptions: {
|
selectKitOptions: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
autoInsertNoneItem: false,
|
allowUncategorized: false,
|
||||||
allowUncategorized: "allowUncategorizedTopics",
|
|
||||||
allowSubCategories: true,
|
allowSubCategories: true,
|
||||||
permissionType: PermissionType.FULL,
|
permissionType: PermissionType.FULL,
|
||||||
excludeCategoryId: null,
|
excludeCategoryId: null,
|
||||||
|
@ -55,7 +54,10 @@ export default ComboBoxComponent.extend({
|
||||||
I18n.t(isString ? this.selectKit.options.none : "category.none")
|
I18n.t(isString ? this.selectKit.options.none : "category.none")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else if (this.selectKit.options.allowUncategorized) {
|
} else if (
|
||||||
|
this.allowUncategorizedTopics ||
|
||||||
|
this.selectKit.options.allowUncategorized
|
||||||
|
) {
|
||||||
return Category.findUncategorized();
|
return Category.findUncategorized();
|
||||||
} else {
|
} else {
|
||||||
const defaultCategoryId = parseInt(
|
const defaultCategoryId = parseInt(
|
||||||
|
@ -92,7 +94,6 @@ export default ComboBoxComponent.extend({
|
||||||
search(filter) {
|
search(filter) {
|
||||||
if (this.site.lazy_load_categories) {
|
if (this.site.lazy_load_categories) {
|
||||||
return Category.asyncSearch(this._normalize(filter), {
|
return Category.asyncSearch(this._normalize(filter), {
|
||||||
includeUncategorized: this.allowUncategorizedTopics,
|
|
||||||
scopedCategoryId: this.selectKit.options?.scopedCategoryId,
|
scopedCategoryId: this.selectKit.options?.scopedCategoryId,
|
||||||
prioritizedCategoryId: this.selectKit.options?.prioritizedCategoryId,
|
prioritizedCategoryId: this.selectKit.options?.prioritizedCategoryId,
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,7 +24,6 @@ export default ComboBoxComponent.extend({
|
||||||
navigateToEdit: false,
|
navigateToEdit: false,
|
||||||
editingCategory: false,
|
editingCategory: false,
|
||||||
editingCategoryTab: null,
|
editingCategoryTab: null,
|
||||||
allowUncategorizedTopics: setting("allow_uncategorized_topics"),
|
|
||||||
|
|
||||||
selectKitOptions: {
|
selectKitOptions: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
|
@ -41,7 +40,7 @@ export default ComboBoxComponent.extend({
|
||||||
displayCategoryDescription: "displayCategoryDescription",
|
displayCategoryDescription: "displayCategoryDescription",
|
||||||
headerComponent: "category-drop/category-drop-header",
|
headerComponent: "category-drop/category-drop-header",
|
||||||
parentCategory: false,
|
parentCategory: false,
|
||||||
allowUncategorized: "allowUncategorizedTopics",
|
allowUncategorized: setting("allow_uncategorized_topics"),
|
||||||
},
|
},
|
||||||
|
|
||||||
modifyComponentForRow() {
|
modifyComponentForRow() {
|
||||||
|
|
Loading…
Reference in New Issue