FIX: in create/edit category modal, don't prompt to choose a parent category when allow_uncategorized_topics is false
This commit is contained in:
parent
843c7a21c9
commit
a061c025f1
|
@ -38,7 +38,7 @@ export default ComboboxView.extend({
|
|||
|
||||
@computed("rootNone")
|
||||
none(rootNone) {
|
||||
if (Discourse.SiteSettings.allow_uncategorized_topics) {
|
||||
if (Discourse.SiteSettings.allow_uncategorized_topics || this.get('allowUncategorized')) {
|
||||
if (rootNone) {
|
||||
return "category.none";
|
||||
} else {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
{{/each}}
|
||||
{{else}}
|
||||
<label>{{i18n 'category.parent'}}</label>
|
||||
{{category-chooser valueAttribute="id" value=category.parent_category_id categories=parentCategories rootNone=true}}
|
||||
{{category-chooser valueAttribute="id" value=category.parent_category_id categories=parentCategories rootNone=true allowUncategorized="true"}}
|
||||
{{/if}}
|
||||
</section>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue