mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 22:23:04 +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:
@ -35,7 +35,6 @@ export default class Chat extends Service {
|
|||||||
|
|
||||||
cook = null;
|
cook = null;
|
||||||
presenceChannel = null;
|
presenceChannel = null;
|
||||||
sidebarActive = false;
|
|
||||||
isNetworkUnreliable = false;
|
isNetworkUnreliable = false;
|
||||||
|
|
||||||
@and("currentUser.has_chat_enabled", "siteSettings.chat_enabled") userCanChat;
|
@and("currentUser.has_chat_enabled", "siteSettings.chat_enabled") userCanChat;
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<div id="chat-progress-bar-container"></div>
|
<div id="chat-progress-bar-container"></div>
|
||||||
|
|
||||||
{{#if this.chat.sidebarActive}}
|
<div
|
||||||
<div class="full-page-chat teams-sidebar-on">
|
class={{concat-class
|
||||||
{{outlet}}
|
"full-page-chat"
|
||||||
</div>
|
(if this.shouldUseCoreSidebar "full-page-chat-sidebar-enabled")
|
||||||
{{else}}
|
}}
|
||||||
<div
|
>
|
||||||
class={{concat-class
|
{{#if this.shouldUseChatSidebar}}
|
||||||
"full-page-chat"
|
<ChannelsList />
|
||||||
(if this.shouldUseCoreSidebar "full-page-chat-sidebar-enabled")
|
{{/if}}
|
||||||
}}
|
|
||||||
>
|
|
||||||
{{#if this.shouldUseChatSidebar}}
|
|
||||||
<ChannelsList />
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
id="main-chat-outlet"
|
id="main-chat-outlet"
|
||||||
class={{concat-class "main-chat-outlet" this.mainOutletModifierClasses}}
|
class={{concat-class "main-chat-outlet" this.mainOutletModifierClasses}}
|
||||||
>
|
>
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
{{#if this.shouldUseChatFooter}}
|
{{#if this.shouldUseChatFooter}}
|
||||||
<ChatFooter />
|
<ChatFooter />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
</div>
|
Reference in New Issue
Block a user