DEV: sidebarActive is not used anymore (#30268)

This was used in the past to show a chat sidebar when the core sidebar
was not existing.
This commit is contained in:
Joffrey JAFFEUX 2025-01-17 12:30:43 +01:00 committed by GitHub
parent f8d5a7873a
commit b43140e021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 25 deletions

View File

@ -35,7 +35,6 @@ export default class Chat extends Service {
cook = null;
presenceChannel = null;
sidebarActive = false;
isNetworkUnreliable = false;
@and("currentUser.has_chat_enabled", "siteSettings.chat_enabled") userCanChat;

View File

@ -1,28 +1,22 @@
<div id="chat-progress-bar-container"></div>
{{#if this.chat.sidebarActive}}
<div class="full-page-chat teams-sidebar-on">
{{outlet}}
</div>
{{else}}
<div
class={{concat-class
"full-page-chat"
(if this.shouldUseCoreSidebar "full-page-chat-sidebar-enabled")
}}
>
{{#if this.shouldUseChatSidebar}}
<ChannelsList />
{{/if}}
<div
class={{concat-class
"full-page-chat"
(if this.shouldUseCoreSidebar "full-page-chat-sidebar-enabled")
}}
>
{{#if this.shouldUseChatSidebar}}
<ChannelsList />
{{/if}}
<div
id="main-chat-outlet"
class={{concat-class "main-chat-outlet" this.mainOutletModifierClasses}}
>
{{outlet}}
{{#if this.shouldUseChatFooter}}
<ChatFooter />
{{/if}}
</div>
<div
id="main-chat-outlet"
class={{concat-class "main-chat-outlet" this.mainOutletModifierClasses}}
>
{{outlet}}
{{#if this.shouldUseChatFooter}}
<ChatFooter />
{{/if}}
</div>
{{/if}}
</div>