UX: Remove desktopView only checks for chat
This commit is contained in:
parent
1e8a1462ad
commit
7bd65006d7
|
@ -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}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue