[IMP] mail: guard DiscussSidebarCategoryItemComponent
Task-2797754 closes odoo/odoo#86814 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
+10
-10
@@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="mail.DiscussSidebarCategoryItem" owl="1">
|
||||
<div class="o_DiscussSidebarCategoryItem"
|
||||
t-att-class="{
|
||||
'o-active': categoryItem and categoryItem.isActive,
|
||||
'o-unread': categoryItem and categoryItem.isUnread,
|
||||
}" t-attf-class="{{ className }}" t-on-click="categoryItem and categoryItem.onClick" t-att-data-thread-local-id="categoryItem and categoryItem.channel.localId" t-att-data-thread-name="categoryItem and categoryItem.channel.displayName"
|
||||
t-ref="root"
|
||||
>
|
||||
<t t-if="categoryItem">
|
||||
<t t-if="categoryItem">
|
||||
<div class="o_DiscussSidebarCategoryItem"
|
||||
t-att-class="{
|
||||
'o-active': categoryItem.isActive,
|
||||
'o-unread': categoryItem.isUnread,
|
||||
}" t-attf-class="{{ className }}" t-on-click="categoryItem.onClick" t-att-data-thread-local-id="categoryItem.channel.localId" t-att-data-thread-name="categoryItem.channel.displayName"
|
||||
t-ref="root"
|
||||
>
|
||||
<div class="o_DiscussSidebarCategoryItem_item o_DiscussSidebarCategoryItem_avatar">
|
||||
<div class="o_DiscussSidebarCategoryItem_imageContainer">
|
||||
<img class="o_DiscussSidebarCategoryItem_image rounded-circle" t-att-src="categoryItem.avatarUrl" alt="Thread Image"/>
|
||||
@@ -40,7 +40,7 @@
|
||||
<t t-esc="categoryItem.counter"/>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user