From db3f5693981c95491d971e2d5da92ab601aec943 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Fri, 20 Jan 2023 13:30:39 +1100 Subject: [PATCH] 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` --- .../components/edit-category-settings.hbs | 16 +--------------- .../templates/components/edit-category-tags.hbs | 13 ++++++++++++- .../tests/acceptance/category-edit-test.js | 2 ++ .../stylesheets/common/base/edit-category.scss | 3 ++- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs b/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs index 2080982b7aa..5d1ab2c2375 100644 --- a/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs @@ -181,20 +181,6 @@ - {{#if this.siteSettings.tagging_enabled}} -
- - -
- {{/if}} -
\ No newline at end of file + diff --git a/app/assets/javascripts/discourse/tests/acceptance/category-edit-test.js b/app/assets/javascripts/discourse/tests/acceptance/category-edit-test.js index 9f777d5877b..a315b60e72d 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/category-edit-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/category-edit-test.js @@ -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); diff --git a/app/assets/stylesheets/common/base/edit-category.scss b/app/assets/stylesheets/common/base/edit-category.scss index f93326e2c95..0365781b45b 100644 --- a/app/assets/stylesheets/common/base/edit-category.scss +++ b/app/assets/stylesheets/common/base/edit-category.scss @@ -102,7 +102,8 @@ div.edit-category { } } - .edit-category-tab-settings { + .edit-category-tab-settings, + .edit-category-tab-tags { > section { margin-bottom: 1.5em; }