diff options
| author | Xavier Dubuc <xdu@odoo.com> | 2020-06-22 14:28:59 +0000 |
|---|---|---|
| committer | Xavier Dubuc <xdu@odoo.com> | 2020-06-24 10:22:35 +0000 |
| commit | ba744be93748063ac9b051509d99f6b582e0df20 (patch) | |
| tree | ebec5fe21b010b1f8b105b9e9c146dcfc6c21122 /addons/mail/static/src/components/chat_window | |
| parent | ff669b68cbf82b0666e6b629a9034f23e1499f52 (diff) | |
[FIX] mail: fix folded new message chat window style
task-2272492
closes odoo/odoo#53565
X-original-commit: dcaa91ffb84a7d9ca433fff1913df47513bb365a
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/chat_window')
| -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> |
