summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window/chat_window.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/components/chat_window/chat_window.xml')
-rw-r--r--addons/mail/static/src/components/chat_window/chat_window.xml54
1 files changed, 26 insertions, 28 deletions
diff --git a/addons/mail/static/src/components/chat_window/chat_window.xml b/addons/mail/static/src/components/chat_window/chat_window.xml
index f92a32cf2fe..240cf0f974c 100644
--- a/addons/mail/static/src/components/chat_window/chat_window.xml
+++ b/addons/mail/static/src/components/chat_window/chat_window.xml
@@ -20,35 +20,33 @@
t-on-o-clicked="_onClickedHeader"
t-ref="header"
/>
- <t t-if="!chatWindow.isFolded">
- <t t-if="chatWindow.thread">
- <ThreadView
- class="o_ChatWindow_thread"
- composerAttachmentsDetailsMode="'card'"
- hasComposer="chatWindow.thread.model !== 'mail.box' and (!chatWindow.thread.mass_mailing or env.messaging.device.isMobile)"
- hasComposerCurrentPartnerAvatar="false"
- hasComposerSendButton="env.messaging.device.isMobile"
- hasSquashCloseMessages="chatWindow.thread.model !== 'mail.box'"
- threadViewLocalId="chatWindow.threadView.localId"
- t-on-focusin="_onFocusinThread"
- t-ref="thread"
+ <t t-if="chatWindow.threadView">
+ <ThreadView
+ class="o_ChatWindow_thread"
+ composerAttachmentsDetailsMode="'card'"
+ hasComposer="chatWindow.thread.model !== 'mail.box' and (!chatWindow.thread.mass_mailing or env.messaging.device.isMobile)"
+ hasComposerCurrentPartnerAvatar="false"
+ hasComposerSendButton="env.messaging.device.isMobile"
+ hasSquashCloseMessages="chatWindow.thread.model !== 'mail.box'"
+ threadViewLocalId="chatWindow.threadView.localId"
+ t-on-focusin="_onFocusinThread"
+ t-ref="thread"
+ />
+ </t>
+ <t t-if="chatWindow.hasNewMessageForm">
+ <div class="o_ChatWindow_newMessageForm">
+ <span class="o_ChatWindow_newMessageFormLabel">
+ To:
+ </span>
+ <AutocompleteInput
+ class="o_ChatWindow_newMessageFormInput"
+ isHtml="true"
+ placeholder="newMessageFormInputPlaceholder"
+ select="_onAutocompleteSelect"
+ source="_onAutocompleteSource"
+ t-ref="input"
/>
- </t>
- <t t-else="">
- <div class="o_ChatWindow_newMessageForm">
- <span class="o_ChatWindow_newMessageFormLabel">
- To:
- </span>
- <AutocompleteInput
- class="o_ChatWindow_newMessageFormInput"
- isHtml="true"
- placeholder="newMessageFormInputPlaceholder"
- select="_onAutocompleteSelect"
- source="_onAutocompleteSource"
- t-ref="input"
- />
- </div>
- </t>
+ </div>
</t>
</t>
</div>