FIX: Do not render empty public channel state when they are disabled
This commit is contained in:
parent
22128ff1ab
commit
844da5e71f
|
@ -6,6 +6,7 @@ import ChannelsListPublic from "discourse/plugins/chat/discourse/components/chan
|
|||
|
||||
export default class ChannelsList extends Component {
|
||||
@service chat;
|
||||
@service siteSettings;
|
||||
|
||||
<template>
|
||||
<div
|
||||
|
@ -13,7 +14,9 @@ export default class ChannelsList extends Component {
|
|||
aria-label={{i18n "chat.aria_roles.channels_list"}}
|
||||
class="channels-list"
|
||||
>
|
||||
<ChannelsListPublic />
|
||||
{{#if this.siteSettings.enable_public_channels}}
|
||||
<ChannelsListPublic />
|
||||
{{/if}}
|
||||
|
||||
{{#if this.chat.userCanAccessDirectMessages}}
|
||||
<ChannelsListDirect />
|
||||
|
|
Loading…
Reference in New Issue