diff options
Diffstat (limited to 'addons/mail/static/src/components/message/message.xml')
| -rw-r--r-- | addons/mail/static/src/components/message/message.xml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/addons/mail/static/src/components/message/message.xml b/addons/mail/static/src/components/message/message.xml index d248c422550..7739c79337a 100644 --- a/addons/mail/static/src/components/message/message.xml +++ b/addons/mail/static/src/components/message/message.xml @@ -49,8 +49,8 @@ /> </t> </div> - <t t-if="message.isCurrentPartnerAuthor and threadViewer and threadViewer.thread and threadViewer.thread.hasSeenIndicators"> - <MessageSeenIndicator class="o_Message_seenIndicator o-message-squashed" messageLocalId="message.localId" threadLocalId="threadViewer.thread.localId"/> + <t t-if="message.isCurrentPartnerAuthor and threadView and threadView.thread and threadView.thread.hasSeenIndicators"> + <MessageSeenIndicator class="o_Message_seenIndicator o-message-squashed" messageLocalId="message.localId" threadLocalId="threadView.thread.localId"/> </t> </t> </div> @@ -75,10 +75,10 @@ <div class="o_Message_date o_Message_headerDate" t-att-class="{ 'o-message-selected': props.isSelected }" t-att-title="datetime"> - <t t-esc="state.timeElapsed"/> </div> - <t t-if="message.isCurrentPartnerAuthor and threadViewer and threadViewer.thread"> - <MessageSeenIndicator class="o_Message_seenIndicator" messageLocalId="message.localId" threadLocalId="threadViewer.thread.localId"/> + <t t-if="message.isCurrentPartnerAuthor and threadView and threadView.thread"> + <MessageSeenIndicator class="o_Message_seenIndicator" messageLocalId="message.localId" threadLocalId="threadView.thread.localId"/> </t> - <t t-if="threadViewer and message.originThread and message.originThread !== threadViewer.thread"> + <t t-if="threadView and message.originThread and message.originThread !== threadView.thread"> <div class="o_Message_originThread" t-att-class="{ 'o-message-selected': props.isSelected }"> <t t-if="message.originThread.model === 'mail.channel'"> (from <a class="o_Message_originThreadLink" href="#" t-on-click="_onClickOriginThread">#<t t-esc="message.originThread.name"/></a>) @@ -91,7 +91,7 @@ <t t-if="message.moderation_status === 'pending_moderation' and !message.isModeratedByCurrentPartner"> <span class="o_Message_moderationPending o-author" title="Your message is pending moderation.">Pending moderation</span> </t> - <t t-if="threadViewer and message.originThread and message.originThread === threadViewer.thread and message.notifications.length > 0"> + <t t-if="threadView and message.originThread and message.originThread === threadView.thread and message.notifications.length > 0"> <t t-if="message.failureNotifications.length > 0"> <span class="o_Message_notificationIconContainer o-error" t-on-click="_onClickFailure"> <i name="failureIcon" class="o_Message_notificationIcon fa fa-envelope"/> @@ -142,8 +142,8 @@ </div> <t t-if="message.isModeratedByCurrentPartner"> <div class="o_Message_moderationSubHeader"> - <t t-if="threadViewer and props.hasCheckbox and message.hasCheckbox"> - <input class="o_Message_checkbox" type="checkbox" t-att-checked="message.isChecked(threadViewer.thread, threadViewer.stringifiedDomain) ? 'checked': ''" t-on-change="_onChangeCheckbox" t-ref="checkbox"/> + <t t-if="threadView and props.hasCheckbox and message.hasCheckbox"> + <input class="o_Message_checkbox" type="checkbox" t-att-checked="message.isChecked(threadView.thread, threadView.stringifiedDomain) ? 'checked': ''" t-on-change="_onChangeCheckbox" t-ref="checkbox"/> </t> <span class="o_Message_moderationPending">Pending moderation:</span> <a class="o_Message_moderationAction o-accept" href="#" title="Accept" t-on-click="_onClickModerationAccept">Accept</a> @@ -180,7 +180,7 @@ </ul> </t> </div> - <t t-if="message.subject and threadViewer and threadViewer.thread and (threadViewer.thread.mass_mailing or [env.messaging.inbox, env.messaging.history].includes(threadViewer.thread))"> + <t t-if="message.subject and threadView and threadView.thread and (threadView.thread.mass_mailing or [env.messaging.inbox, env.messaging.history].includes(threadView.thread))"> <p class="o_Message_subject">Subject: <t t-esc="message.subject"/></p> </t> <t t-if="message.attachments and message.attachments.length > 0"> |
