diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/mail/static/src/components/thread_view/thread_view.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/mail/static/src/components/thread_view/thread_view.xml')
| -rw-r--r-- | addons/mail/static/src/components/thread_view/thread_view.xml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/thread_view/thread_view.xml b/addons/mail/static/src/components/thread_view/thread_view.xml new file mode 100644 index 00000000..8f06bf39 --- /dev/null +++ b/addons/mail/static/src/components/thread_view/thread_view.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + + <t t-name="mail.ThreadView" owl="1"> + <div class="o_ThreadView" t-att-data-correspondent-id="threadView and threadView.thread and threadView.thread.correspondent and threadView.thread.correspondent.id" t-att-data-thread-local-id="threadView and threadView.thread and threadView.thread.localId"> + <t t-if="threadView"> + <t t-if="threadView.isLoading and !threadView.threadCache.isLoaded" name="loadingCondition"> + <div class="o_ThreadView_loading"> + <span><i class="o_ThreadView_loadingIcon fa fa-spinner fa-spin" title="Loading..." role="img"/>Loading...</span> + </div> + </t> + <t t-elif="threadView.threadCache.isLoaded or threadView.thread.isTemporary"> + <MessageList + class="o_ThreadView_messageList" + getScrollableElement= "props.getScrollableElement" + hasMessageCheckbox="props.hasMessageCheckbox" + hasScrollAdjust="props.hasScrollAdjust" + hasSquashCloseMessages="props.hasSquashCloseMessages" + haveMessagesMarkAsReadIcon="props.haveMessagesMarkAsReadIcon" + haveMessagesReplyIcon="props.haveMessagesReplyIcon" + order="props.order" + selectedMessageLocalId="props.selectedMessageLocalId" + threadViewLocalId="threadView.localId" + t-ref="messageList" + /> + </t> + <t t-elif="props.hasComposer"> + <div class="o-autogrow"/> + </t> + <t t-if="props.hasComposer"> + <Composer + class="o_ThreadView_composer" + attachmentsDetailsMode="props.composerAttachmentsDetailsMode" + composerLocalId="threadView.thread.composer.localId" + hasCurrentPartnerAvatar="props.hasComposerCurrentPartnerAvatar" + hasSendButton="props.hasComposerSendButton" + hasThreadTyping="props.hasComposerThreadTyping" + isCompact="(threadView.thread.model === 'mail.channel' and threadView.thread.mass_mailing) ? false : undefined" + isDoFocus="props.isDoFocus" + showAttachmentsExtensions="props.showComposerAttachmentsExtensions" + showAttachmentsFilenames="props.showComposerAttachmentsFilenames" + textInputSendShortcuts="threadView.textInputSendShortcuts" + t-ref="composer" + /> + </t> + </t> + </div> + </t> + +</templates> |
