diff --git a/app/assets/javascripts/discourse/app/components/discourse-topic.js b/app/assets/javascripts/discourse/app/components/discourse-topic.js index 4253cbb8034..2a3a0161c31 100644 --- a/app/assets/javascripts/discourse/app/components/discourse-topic.js +++ b/app/assets/javascripts/discourse/app/components/discourse-topic.js @@ -56,7 +56,7 @@ export default Component.extend(Scrolling, MobileScrollDirection, { _hideTopicInHeader() { this.appEvents.trigger("header:hide-topic"); - this.header.topic = null; + this.header.inTopic = false; this._lastShowTopic = false; }, @@ -65,7 +65,7 @@ export default Component.extend(Scrolling, MobileScrollDirection, { return; } this.appEvents.trigger("header:show-topic", topic); - this.header.topic = topic; + this.header.inTopic = true; this._lastShowTopic = true; }, diff --git a/app/assets/javascripts/discourse/app/components/header.gjs b/app/assets/javascripts/discourse/app/components/header.gjs index 54b33121332..0a030e181b5 100644 --- a/app/assets/javascripts/discourse/app/components/header.gjs +++ b/app/assets/javascripts/discourse/app/components/header.gjs @@ -242,7 +242,7 @@ export default class GlimmerHeader extends Component { diff --git a/app/assets/javascripts/discourse/app/components/header/auth-buttons.gjs b/app/assets/javascripts/discourse/app/components/header/auth-buttons.gjs index 713e8b44bc3..72f58757440 100644 --- a/app/assets/javascripts/discourse/app/components/header/auth-buttons.gjs +++ b/app/assets/javascripts/discourse/app/components/header/auth-buttons.gjs @@ -8,7 +8,7 @@ export default class AuthButtons extends Component {