[IMP] mail, *: guard ThreadIconComponent

*: im_livechat

Task-2797754

closes odoo/odoo#86947

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-23 16:16:54 +01:00
parent 4b5d981b47
commit 694fe89cfc
2 changed files with 5 additions and 5 deletions
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-inherit="mail.ThreadIcon" t-inherit-mode="extension">
<xpath expr="//*[@name='rootCondition']" position="inside">
<xpath expr="//*[@name='root']" position="inside">
<t t-elif="thread.channel_type === 'livechat'">
<t t-if="thread.orderedOtherTypingMembers.length > 0">
<ThreadTypingIcon
@@ -2,8 +2,8 @@
<templates xml:space="preserve">
<t t-name="mail.ThreadIcon" owl="1">
<div class="o_ThreadIcon" t-attf-class="{{ className }}" t-ref="root">
<t t-if="thread" name="rootCondition">
<t t-if="thread">
<div class="o_ThreadIcon" t-attf-class="{{ className }}" t-ref="root" name="root">
<t t-if="thread.channel_type === 'channel'">
<t t-if="thread.public === 'private'">
<div class="o_ThreadIcon_channelPrivate fa fa-lock" title="Private channel"/>
@@ -53,8 +53,8 @@
<div class="o_ThreadIcon_mailboxHistory fa fa-history"/>
</t>
</t>
</t>
</div>
</div>
</t>
</t>
</templates>