A platform for community discussion. Free, open, simple.
DEV: sidebarActive is not used anymore (#30268)
Joffrey JAFFEUXb43140e0216d
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat.js b/plugins/chat/assets/javascripts/discourse/services/chat.jsindex afe76f77cbf..63f8a21a033 100644--- a/plugins/chat/assets/javascripts/discourse/services/chat.js+++ b/plugins/chat/assets/javascripts/discourse/services/chat.js@@ -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;diff --git a/plugins/chat/assets/javascripts/discourse/templates/chat.hbs b/plugins/chat/assets/javascripts/discourse/templates/chat.hbsindex 292f53880b8..40cd71798cc 100644--- a/plugins/chat/assets/javascripts/discourse/templates/chat.hbs+++ b/plugins/chat/assets/javascripts/discourse/templates/chat.hbs@@ -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")- }}+ id="main-chat-outlet"+ class={{concat-class "main-chat-outlet" this.mainOutletModifierClasses}}>- {{#if this.shouldUseChatSidebar}}- <ChannelsList />+ {{outlet}}+ {{#if this.shouldUseChatFooter}}+ <ChatFooter />{{/if}}-- <div- id="main-chat-outlet"- class={{concat-class "main-chat-outlet" this.mainOutletModifierClasses}}- >- {{outlet}}- {{#if this.shouldUseChatFooter}}- <ChatFooter />- {{/if}}- </div></div>-{{/if}}\ No newline at end of file+</div>\ No newline at end of file