mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Show category name in badge preview on edit (#9726)
This commit is contained in:
parent
a2bb33b6d7
commit
7d3c4a5f13
@ -66,7 +66,7 @@ export default buildCategoryPanel("general", {
|
|||||||
|
|
||||||
@discourseComputed(
|
@discourseComputed(
|
||||||
"category.parent_category_id",
|
"category.parent_category_id",
|
||||||
"category.categoryName",
|
"category.name",
|
||||||
"category.color",
|
"category.color",
|
||||||
"category.text_color"
|
"category.text_color"
|
||||||
)
|
)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{#unless category.isUncategorizedCategory}}
|
{{#unless category.isUncategorizedCategory}}
|
||||||
<section class="field-item">
|
<section class="field-item">
|
||||||
<label>{{i18n "category.name"}}</label>
|
<label>{{i18n "category.name"}}</label>
|
||||||
{{text-field value=category.name placeholderKey="category.name_placeholder" maxlength="50"}}
|
{{text-field value=category.name placeholderKey="category.name_placeholder" maxlength="50" class="category-name"}}
|
||||||
</section>
|
</section>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<section class="field-item">
|
<section class="field-item">
|
||||||
|
@ -21,6 +21,11 @@ QUnit.test("Editing the category", async assert => {
|
|||||||
await visit("/c/bug");
|
await visit("/c/bug");
|
||||||
|
|
||||||
await click(".edit-category");
|
await click(".edit-category");
|
||||||
|
|
||||||
|
assert.equal(find(".d-modal .badge-category").text(), "bug");
|
||||||
|
await fillIn("input.category-name", "testing");
|
||||||
|
assert.equal(find(".d-modal .badge-category").text(), "testing");
|
||||||
|
|
||||||
await fillIn("#edit-text-color", "#ff0000");
|
await fillIn("#edit-text-color", "#ff0000");
|
||||||
|
|
||||||
await click(".edit-category-topic-template");
|
await click(".edit-category-topic-template");
|
||||||
|
Loading…
Reference in New Issue
Block a user