FIX: move min tag setting to tags section in edit category (#19789)
`Minimum number of tags required in a topic` should be in `Tags` panel instead of `Settings`
This commit is contained in:
parent
f409e977a9
commit
b05f193cf0
|
@ -181,20 +181,6 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
{{#if this.siteSettings.tagging_enabled}}
|
||||
<section class="field minimum-required-tags">
|
||||
<label for="category-minimum-tags">
|
||||
{{i18n "category.minimum_required_tags"}}
|
||||
</label>
|
||||
<TextField
|
||||
@value={{this.category.minimum_required_tags}}
|
||||
@id="category-minimum-tags"
|
||||
@type="number"
|
||||
@min="0"
|
||||
/>
|
||||
</section>
|
||||
{{/if}}
|
||||
|
||||
<section class="field num-auto-bump-daily">
|
||||
<label for="category-number-daily-bump">
|
||||
{{i18n "category.num_auto_bump_daily"}}
|
||||
|
@ -378,4 +364,4 @@
|
|||
@name="category-custom-settings"
|
||||
@args={{hash category=this.category}}
|
||||
@tagName="section"
|
||||
/>
|
||||
/>
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
<section class="field minimum-required-tags">
|
||||
<label for="category-minimum-tags">
|
||||
{{i18n "category.minimum_required_tags"}}
|
||||
</label>
|
||||
<TextField
|
||||
@value={{this.category.minimum_required_tags}}
|
||||
@id="category-minimum-tags"
|
||||
@type="number"
|
||||
@min="0"
|
||||
/>
|
||||
</section>
|
||||
<section class="field allowed-tags">
|
||||
<label>{{i18n "category.tags_allowed_tags"}}</label>
|
||||
<TagChooser
|
||||
|
@ -71,4 +82,4 @@
|
|||
@class="add-required-tag-group"
|
||||
/>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
@ -77,6 +77,8 @@ acceptance("Category Edit", function (needs) {
|
|||
test("Editing required tag groups", async function (assert) {
|
||||
await visit("/c/bug/edit/tags");
|
||||
|
||||
assert.ok(exists(".minimum-required-tags"));
|
||||
|
||||
assert.ok(exists(".required-tag-groups"));
|
||||
assert.strictEqual(count(".required-tag-group-row"), 0);
|
||||
|
||||
|
|
|
@ -102,7 +102,8 @@ div.edit-category {
|
|||
}
|
||||
}
|
||||
|
||||
.edit-category-tab-settings {
|
||||
.edit-category-tab-settings,
|
||||
.edit-category-tab-tags {
|
||||
> section {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue