mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Ensure tag-info does not persist onto non-tag routes (#24462)
This commit is contained in:
parent
1a43010603
commit
3408db94f0
@ -26,7 +26,7 @@
|
|||||||
@parentCategory={{this.model.subcategoryList.parentCategory}}
|
@parentCategory={{this.model.subcategoryList.parentCategory}}
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if this.showTagInfo}}
|
{{#if (and this.showTagInfo this.model.tag)}}
|
||||||
<TagInfo @tag={{this.model.tag}} @list={{this.model.list}} />
|
<TagInfo @tag={{this.model.tag}} @list={{this.model.list}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</:header>
|
</:header>
|
||||||
|
@ -475,6 +475,17 @@ acceptance("Tag info", function (needs) {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("tag info hides when tag filter removed", async function (assert) {
|
||||||
|
await visit("/tag/happy-monkey");
|
||||||
|
|
||||||
|
await click("#show-tag-info");
|
||||||
|
assert.dom(".tag-info .tag-name").exists();
|
||||||
|
|
||||||
|
await visit("/latest");
|
||||||
|
|
||||||
|
assert.dom(".tag-info").doesNotExist("tag info is not shown on homepage");
|
||||||
|
});
|
||||||
|
|
||||||
test("can filter tags page by category", async function (assert) {
|
test("can filter tags page by category", async function (assert) {
|
||||||
await visit("/tag/planters");
|
await visit("/tag/planters");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user