From 0c68b14534354ed875773265ec486f900d803b9d Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 25 Nov 2024 08:21:41 +0100 Subject: [PATCH] FIX: correctly link to settings in full page (#29913) There's already a test for this behavior and the CI is currently broken because of it. --- .../discourse/components/chat/navbar/channel-title.gjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs index 80d725d83a3..d6f354bde16 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs @@ -6,9 +6,16 @@ import ChannelTitle from "discourse/plugins/chat/discourse/components/channel-ti export default class ChatNavbarChannelTitle extends Component { @service chatStateManager; + get shouldLinkToSettings() { + return ( + this.chatStateManager.isDrawerExpanded || + this.chatStateManager.isFullPageActive + ); + } +