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.
This commit is contained in:
parent
fd39753e58
commit
0c68b14534
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
<template>
|
||||
{{#if @channel}}
|
||||
{{#if this.chatStateManager.isDrawerExpanded}}
|
||||
{{#if this.shouldLinkToSettings}}
|
||||
<LinkTo
|
||||
@route="chat.channel.info.settings"
|
||||
@models={{@channel.routeModels}}
|
||||
|
|
Loading…
Reference in New Issue