blob: ad4a10962e67eebd178e87620cf7241c2e708f32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mail.ChatWindow" owl="1">
<div class="o_ChatWindow" 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': env.messaging.device.isMobile,
'o-new-message': chatWindow and !chatWindow.thread,
}" 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 t-if="chatWindow">
<ChatWindowHeader
class="o_ChatWindow_header"
chatWindowLocalId="chatWindow.localId"
hasCloseAsBackButton="props.hasCloseAsBackButton"
isExpandable="props.isExpandable"
t-on-o-clicked="_onClickedHeader"
t-ref="header"
/>
<t t-if="chatWindow.threadView">
<ThreadView
class="o_ChatWindow_thread"
composerAttachmentsDetailsMode="'card'"
hasComposer="chatWindow.thread.model !== 'mail.box' and (!chatWindow.thread.mass_mailing or env.messaging.device.isMobile)"
hasComposerCurrentPartnerAvatar="false"
hasComposerSendButton="env.messaging.device.isMobile"
hasSquashCloseMessages="chatWindow.thread.model !== 'mail.box'"
threadViewLocalId="chatWindow.threadView.localId"
t-on-focusin="_onFocusinThread"
t-ref="thread"
/>
</t>
<t t-if="chatWindow.hasNewMessageForm">
<div class="o_ChatWindow_newMessageForm">
<span class="o_ChatWindow_newMessageFormLabel">
To:
</span>
<AutocompleteInput
class="o_ChatWindow_newMessageFormInput"
placeholder="newMessageFormInputPlaceholder"
select="_onAutocompleteSelect"
source="_onAutocompleteSource"
t-ref="input"
/>
</div>
</t>
</t>
</div>
</t>
</templates>
|