mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
web_notify: add feature to reload current view
This commit is contained in:
committed by
Yannick Vaucher
parent
b8e1337079
commit
8d3f2749e4
24
web_notify/static/src/xml/notification.xml
Normal file
24
web_notify/static/src/xml/notification.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="Notification.reload">
|
||||
<div class="o_notification_reload" t-if="widget.options.show_reload">
|
||||
<a href="#" class="o_view_reload">
|
||||
<span class="fa fa-refresh"/> Reload current view
|
||||
</a>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-extend="Notification">
|
||||
<t t-jquery=".o_notification_content" t-operation="after">
|
||||
<t t-call="Notification.reload"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<t t-extend="Warning">
|
||||
<t t-jquery=".o_notification_content" t-operation="after">
|
||||
<t t-call="Notification.reload"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Reference in New Issue
Block a user