diff options
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.xml | 56 |
1 files changed, 29 insertions, 27 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 c4f6117a25d..6a951d1827d 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.xml +++ b/addons/mail/static/src/components/chat_window/chat_window.xml @@ -20,34 +20,36 @@ t-on-o-clicked="_onClickedHeader" t-ref="header" /> - <t t-if="chatWindow.thread"> - <ThreadViewer - class="o_ChatWindow_thread" - composerAttachmentsDetailsMode="'card'" - hasComposer="chatWindow.thread.model !== 'mail.box'" - hasComposerCurrentPartnerAvatar="false" - hasComposerSendButton="env.messaging.device.isMobile" - hasSquashCloseMessages="chatWindow.thread.model !== 'mail.box'" - haveMessagesAuthorRedirect="chatWindow.thread.channel_type !== 'chat'" - threadViewerLocalId="chatWindow.threadViewer.localId" - t-on-focusin="_onFocusinThread" - t-ref="thread" - /> - </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" + <t t-if="!chatWindow.isFolded"> + <t t-if="chatWindow.thread"> + <ThreadViewer + class="o_ChatWindow_thread" + composerAttachmentsDetailsMode="'card'" + hasComposer="chatWindow.thread.model !== 'mail.box'" + hasComposerCurrentPartnerAvatar="false" + hasComposerSendButton="env.messaging.device.isMobile" + hasSquashCloseMessages="chatWindow.thread.model !== 'mail.box'" + haveMessagesAuthorRedirect="chatWindow.thread.channel_type !== 'chat'" + threadViewerLocalId="chatWindow.threadViewer.localId" + t-on-focusin="_onFocusinThread" + t-ref="thread" /> - </div> + </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> </t> </t> </div> |
