mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00

- better handling of drawer state using chat state manager - removes various float and topic occurrences to use drawer - ensures user can chat before doing a lot of chat setup - fixes a bug which was creating presence errors in tests - removes dead code
29 lines
757 B
Handlebars
29 lines
757 B
Handlebars
<div class="chat-draft">
|
|
{{#if this.site.mobileView}}
|
|
<header class="chat-draft-header">
|
|
<FlatButton
|
|
@class="chat-draft-header__btn btn"
|
|
@icon="chevron-left"
|
|
@title="chat.draft_channel_screen.cancel"
|
|
@action={{action "onCancelChatDraft"}}
|
|
/>
|
|
<h2 class="chat-draft-header__title">
|
|
{{d-icon "comment"}}
|
|
{{i18n "chat.draft_channel_screen.header"}}
|
|
</h2>
|
|
</header>
|
|
{{/if}}
|
|
|
|
<DirectMessageCreator
|
|
@onChangeSelectedUsers={{action "onChangeSelectedUsers"}}
|
|
/>
|
|
|
|
{{#if this.previewedChannel}}
|
|
<ChatLivePane
|
|
@chatChannel={{this.previewedChannel}}
|
|
@includeHeader={{false}}
|
|
@onSwitchChannel={{action "onSwitchFromDraftChannel"}}
|
|
/>
|
|
{{/if}}
|
|
</div>
|