summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window_manager/chat_window_manager.xml
blob: 8e2bd6bf69c5dc732f595aea1a0f6e7067bce7f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

    <t t-name="mail.ChatWindowManager" owl="1">
        <div class="o_ChatWindowManager">
            <t t-if="env.isMessagingInitialized()">
                <!-- Note: DOM elements are ordered from left to right -->
                <t t-if="env.messaging.chatWindowManager.hasHiddenChatWindows">
                    <ChatWindowHiddenMenu class="o_ChatWindowManager_hiddenMenu"/>
                </t>
                <t t-foreach="env.messaging.chatWindowManager.allOrderedVisible" t-as="chatWindow" t-key="chatWindow.localId">
                    <ChatWindow
                        chatWindowLocalId="chatWindow.localId"
                        hasCloseAsBackButton="env.messaging.device.isMobile"
                        isExpandable="!env.messaging.device.isMobile and !!chatWindow.thread"
                        isFullscreen="env.messaging.device.isMobile"
                    />
                </t>
            </t>
        </div>
    </t>

</templates>