[IMP] mail: guard NotificationListComponent

Task-2797754

closes odoo/odoo#86838

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-23 14:37:50 +01:00
parent 13caf09833
commit 583dafa240
@@ -2,8 +2,8 @@
<templates xml:space="preserve">
<t t-name="mail.NotificationList" owl="1">
<div class="o_NotificationList" t-att-class="{ 'o-empty': notificationListView and notificationListView.notificationViews.length === 0 }" t-attf-class="{{ className }}" t-ref="root">
<t t-if="notificationListView">
<t t-if="notificationListView">
<div class="o_NotificationList" t-att-class="{ 'o-empty': notificationListView.notificationViews.length === 0 }" t-attf-class="{{ className }}" t-ref="root">
<t t-if="notificationListView.notificationViews.length === 0">
<div class="o_NotificationList_noConversation">
No conversation yet...
@@ -43,8 +43,8 @@
</t>
</t>
</t>
</t>
</div>
</div>
</t>
</t>
</templates>