Skip to content
Snippets Groups Projects
Commit 5cc02166 authored by Alexandre Kühn's avatar Alexandre Kühn
Browse files

[IMP] mail: guard ChatWindowComponent


Task-2797754

closes odoo/odoo#86779

Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
parent 493d4a28
No related branches found
No related tags found
No related merge requests found
......@@ -2,16 +2,16 @@
<templates xml:space="preserve">
<t t-name="mail.ChatWindow" owl="1">
<div class="o_ChatWindow bg-white" t-attf-class="{{ className }}" tabindex="0" t-att-data-visible-index="chatWindow ? chatWindow.visibleIndex : undefined"
t-att-class="{
'o-focused': chatWindow and chatWindow.isFocused,
'o-folded': chatWindow and chatWindow.isFolded,
'o-fullscreen': props.isFullscreen,
'o-mobile': messaging and messaging.device.isMobile,
'o-new-message': chatWindow and !chatWindow.thread,
}" t-att-style="chatWindow ? chatWindow.componentStyle : undefined" t-on-keydown="_onKeydown" t-on-focusout="_onFocusout" t-att-data-chat-window-local-id="chatWindow ? chatWindow.localId : undefined" t-att-data-thread-local-id="chatWindow ? (chatWindow.thread ? chatWindow.thread.localId : '') : undefined" t-ref="root"
>
<t t-if="chatWindow">
<t t-if="chatWindow">
<div class="o_ChatWindow bg-white" t-attf-class="{{ className }}" tabindex="0" t-att-data-visible-index="chatWindow.visibleIndex"
t-att-class="{
'o-focused': chatWindow.isFocused,
'o-folded': chatWindow.isFolded,
'o-fullscreen': props.isFullscreen,
'o-mobile': messaging.device.isMobile,
'o-new-message': !chatWindow.thread,
}" t-att-style="chatWindow.componentStyle" t-on-keydown="_onKeydown" t-on-focusout="_onFocusout" t-att-data-chat-window-local-id="chatWindow.localId" t-att-data-thread-local-id="chatWindow.thread ? chatWindow.thread.localId : ''" t-ref="root"
>
<ChatWindowHeader
className="'o_ChatWindow_header'"
chatWindowLocalId="chatWindow.localId"
......@@ -49,8 +49,8 @@
/>
</div>
</t>
</t>
</div>
</div>
</t>
</t>
</templates>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment