UX: Remove desktopView only checks for chat

This commit is contained in:
Gabriel Grubba 2024-07-17 17:12:06 -03:00
parent 1e8a1462ad
commit 7bd65006d7
No known key found for this signature in database
GPG Key ID: 5FE41764F62D556C
2 changed files with 0 additions and 58 deletions

View File

@ -67,37 +67,6 @@ export default class ChannelsListDirect extends Component {
@outletArgs={{hash inSidebar=this.inSidebar}}
/>
{{#if (and this.showDirectMessageChannels this.site.desktopView)}}
<div class="chat-channel-divider direct-message-channels-section">
{{#if this.inSidebar}}
<span
class="title-caret"
id="direct-message-channels-caret"
role="button"
title="toggle nav list"
{{on
"click"
(fn this.toggleChannelSection "direct-message-channels")
}}
data-toggleable="direct-message-channels"
>
{{dIcon "angle-up"}}
</span>
{{/if}}
<span class="channel-title">{{i18n "chat.direct_messages.title"}}</span>
{{#if this.canCreateDirectMessageChannel}}
<DButton
@icon="plus"
class="no-text btn-flat open-new-message-btn"
@action={{this.openNewMessageModal}}
title={{i18n this.createDirectMessageChannelLabel}}
/>
{{/if}}
</div>
{{/if}}
<div
id="direct-message-channels"
class={{this.directMessageChannelClasses}}

View File

@ -84,33 +84,6 @@ export default class ChannelsListPublic extends Component {
</LinkTo>
{{/if}}
{{#if (and this.displayPublicChannels this.site.desktopView)}}
<div class="chat-channel-divider public-channels-section">
{{#if this.inSidebar}}
<span
class="title-caret"
id="public-channels-caret"
role="button"
title="toggle nav list"
{{on "click" (fn this.toggleChannelSection "public-channels")}}
data-toggleable="public-channels"
>
{{dIcon "angle-up"}}
</span>
{{/if}}
<span class="channel-title">{{i18n "chat.chat_channels"}}</span>
<LinkTo
@route="chat.browse"
class="btn no-text btn-flat open-browse-page-btn title-action"
title={{i18n "chat.channels_list_popup.browse"}}
>
{{dIcon "pencil-alt"}}
</LinkTo>
</div>
{{/if}}
<div
id="public-channels"
class={{concatClass