mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
When visiting a channel which has unread threads, we will now open the threads list panel. Note that: mobile linking to message linking to a thread Won't open the threads list.
28 lines
918 B
Handlebars
28 lines
918 B
Handlebars
<ChatDrawer::Header @toggleExpand={{@drawerActions.toggleExpand}}>
|
|
{{#if (and this.chatStateManager.isDrawerExpanded this.chat.activeChannel)}}
|
|
<div class="chat-drawer-header__left-actions">
|
|
<div class="chat-drawer-header__top-line">
|
|
<ChatDrawer::Header::BackLink
|
|
@route="chat.channel"
|
|
@title={{i18n "chat.return_to_list"}}
|
|
@routeModels={{this.chat.activeChannel.routeModels}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<ChatDrawer::Header::Title @title="chat.threads.list" />
|
|
|
|
<ChatDrawer::Header::RightActions @drawerActions={{@drawerActions}} />
|
|
</ChatDrawer::Header>
|
|
|
|
{{#if this.chatStateManager.isDrawerExpanded}}
|
|
<div class="chat-drawer-content" {{did-insert this.fetchChannel}}>
|
|
{{#if this.chat.activeChannel}}
|
|
<ChatThreadList
|
|
@channel={{this.chat.activeChannel}}
|
|
@includeHeader={{false}}
|
|
/>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}} |