FIX: Do not render empty public channel state when they are disabled

This commit is contained in:
Mark VanLandingham 2024-06-21 14:52:55 -05:00
parent 22128ff1ab
commit 844da5e71f
No known key found for this signature in database
GPG Key ID: 3522A75A293C836D
1 changed files with 4 additions and 1 deletions

View File

@ -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 />