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")
|
@computed("rootNone")
|
||||||
none(rootNone) {
|
none(rootNone) {
|
||||||
if (Discourse.SiteSettings.allow_uncategorized_topics) {
|
if (Discourse.SiteSettings.allow_uncategorized_topics || this.get('allowUncategorized')) {
|
||||||
if (rootNone) {
|
if (rootNone) {
|
||||||
return "category.none";
|
return "category.none";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<label>{{i18n 'category.parent'}}</label>
|
<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}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue