From dce5e811efb14341f534e3c8fb4c95f435f1608b Mon Sep 17 00:00:00 2001
From: chapoi <101828855+chapoi@users.noreply.github.com>
Date: Mon, 18 Dec 2023 23:09:47 +0200
Subject: [PATCH] UX: chat channel info area > classname changes (#24954)
---
.../chat/routes/channel-info-members.gjs | 12 +++++-----
.../chat/routes/channel-info-settings.gjs | 20 ++++++++---------
.../components/chat/routes/channel-info.gjs | 4 ++--
.../stylesheets/common/chat-channel-info.scss | 8 +++----
.../common/chat-channel-members.scss | 2 +-
.../common/chat-channel-settings.scss | 6 ++---
.../desktop/chat-channel-info.scss | 2 +-
.../mobile/chat-channel-members.scss | 2 +-
.../mobile/chat-channel-settings.scss | 2 +-
.../spec/system/channel_members_page_spec.rb | 18 +++++++--------
.../spec/system/channel_settings_page_spec.rb | 22 ++++++++-----------
.../chat/chat_channel_settings.rb | 4 ++--
12 files changed, 49 insertions(+), 53 deletions(-)
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjs
index 7ac2da49c9f..2b044bad680 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjs
@@ -130,19 +130,19 @@ export default class ChatRouteChannelInfoMembers extends Component {
@onCancel={{this.hideAddMember}}
/>
{{else}}
-
+
-
+
{{#if @channel.chatable.group}}
-
{{this.noMembershipsFoundLabel}}
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjs
index f89260ee34b..211d791e364 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjs
@@ -327,17 +327,17 @@ export default class ChatRouteChannelInfoSettings extends Component {
}
-
+
<:default>
-
+
{{replaceEmoji @channel.title}}
{{#if @channel.isCategoryChannel}}
-
+
@@ -423,7 +423,7 @@ export default class ChatRouteChannelInfoSettings extends Component {
"desktopNotificationLevel"
"desktop_notification_level"
}}
- class="chat-channel-settings__selector chat-channel-settings__desktop-notifications-selector"
+ class="c-channel-settings__selector c-channel-settings__desktop-notifications-selector"
/>
@@ -441,7 +441,7 @@ export default class ChatRouteChannelInfoSettings extends Component {
"mobileNotificationLevel"
"mobile_notification_level"
}}
- class="chat-channel-settings__selector chat-channel-settings__mobile-notifications-selector"
+ class="c-channel-settings__selector c-channel-settings__mobile-notifications-selector"
/>
@@ -476,7 +476,7 @@ export default class ChatRouteChannelInfoSettings extends Component {
<:action>
<:action>
{{#if @channel.chatable.group}}
-
+
{{icon "exclamation-triangle"}}
{{i18n "chat.channel_settings.leave_groupchat_info"}}
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs
index 200b6a7ea4b..14dc516a594 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs
@@ -58,9 +58,9 @@ export default class ChatRoutesChannelInfo extends Component {
-
+
{{#if this.showTabs}}
-