mirror of
https://github.com/discourse/discourse.git
synced 2025-03-10 07:07:24 +08:00
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:
parent
f8d5a7873a
commit
b43140e021
@ -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;
|
||||
|
@ -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>
|
Loading…
x
Reference in New Issue
Block a user