Skip to content

A platform for community discussion. Free, open, simple.

DEV: encapsulate the tag info button's appearance (#40657)

Kris24a9443114cc
diff --git a/frontend/discourse/app/components/d-navigation.gjs b/frontend/discourse/app/components/d-navigation.gjs
index 1fa82b1a044..974580d959b 100644
--- a/frontend/discourse/app/components/d-navigation.gjs
+++ b/frontend/discourse/app/components/d-navigation.gjs
@@ -156,9 +156,10 @@ export default class DNavigation extends Component {
);
}
- @computed("tag", "tag.name", "additionalTags", "category")
+ @computed("toggleTagInfo", "tag", "tag.name", "additionalTags", "category")
get showTagInfoButton() {
return (
+ this.toggleTagInfo &&
this.tag &&
this.tag.name !== "none" &&
!this.additionalTags &&