summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/notification_request/notification_request.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/components/notification_request/notification_request.xml')
-rw-r--r--addons/mail/static/src/components/notification_request/notification_request.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/notification_request/notification_request.xml b/addons/mail/static/src/components/notification_request/notification_request.xml
new file mode 100644
index 00000000..f59c671a
--- /dev/null
+++ b/addons/mail/static/src/components/notification_request/notification_request.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+
+ <t t-name="mail.NotificationRequest" owl="1">
+ <div class="o_NotificationRequest" t-on-click="_onClick">
+ <div class="o_NotificationRequest_sidebar">
+ <div class="o_NotificationRequest_imageContainer o_NotificationRequest_sidebarItem">
+ <img class="o_NotificationRequest_image rounded-circle" src="/mail/static/src/img/odoobot.png" alt="Avatar of OdooBot"/>
+ <PartnerImStatusIcon
+ class="o_NotificationRequest_partnerImStatusIcon"
+ t-att-class="{ 'o-mobile': env.messaging.device.isMobile }"
+ partnerLocalId="env.messaging.partnerRoot.localId"
+ />
+ </div>
+ </div>
+ <div class="o_NotificationRequest_content">
+ <div class="o_NotificationRequest_header">
+ <span class="o_NotificationRequest_name" t-att-class="{ 'o-mobile': env.messaging.device.isMobile }">
+ <t t-esc="getHeaderText()"/>
+ </span>
+ </div>
+ <div class="o_NotificationRequest_core">
+ <span class="o_NotificationRequest_coreItem o_NotificationRequest_inlineText">
+ Enable desktop notifications to chat.
+ </span>
+ </div>
+ </div>
+ </div>
+ </t>
+
+</templates>