mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 05:33:38 +08:00
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 {
|
export default class ChatNavbarChannelTitle extends Component {
|
||||||
@service chatStateManager;
|
@service chatStateManager;
|
||||||
|
|
||||||
|
get shouldLinkToSettings() {
|
||||||
|
return (
|
||||||
|
this.chatStateManager.isDrawerExpanded ||
|
||||||
|
this.chatStateManager.isFullPageActive
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
{{#if @channel}}
|
{{#if @channel}}
|
||||||
{{#if this.chatStateManager.isDrawerExpanded}}
|
{{#if this.shouldLinkToSettings}}
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="chat.channel.info.settings"
|
@route="chat.channel.info.settings"
|
||||||
@models={{@channel.routeModels}}
|
@models={{@channel.routeModels}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user