A platform for community discussion. Free, open, simple.
FIX: show leave channel notice only on group channels (#24653)
Joffrey JAFFEUX4fa1b0e978c7
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-settings.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-settings.gjsindex e7326283ebc..4196c8df293 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-settings.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-settings.gjs@@ -593,14 +593,13 @@ export default class ChatAboutScreen extends Component {/></:action></section.row>- {{#unless @channel.isCategoryChannel}}+ {{#if @channel.chatable.group}}<div class="chat-channel-settings__leave-info">{{icon "exclamation-triangle"}}{{i18n "chat.channel_settings.leave_groupchat_info"}}</div>- {{/unless}}+ {{/if}}</form.section>-</ChatForm></div></template>