diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-10-01 10:41:12 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-10-01 14:00:20 +0200 |
| commit | 0d91339b7bcb68781ee4b11c5474ed853f8c62bd (patch) | |
| tree | e6aa5c2073ca652ea940ecd8551ad67559676b89 /addons/mail/static/src/xml | |
| parent | 0e2dd225f6d62e705ceedc10bb8a3017c9c661a6 (diff) | |
[IMP] mail: increase needaction counter on new message notification
At least, when someone mentions a user in a message posted in a channel, a
notification is sent by the server that a new message just arrived in that
channel. Client side, we then decide whether or not this message should appear
in the Inbox as well. In the positive case, we can increase the needaction
counter.
Problem remains for messages sent from chatters and by using the mail icon in
the systray, as for those ones, no notification at all is sent by the server.
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/client_action.xml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/addons/mail/static/src/xml/client_action.xml b/addons/mail/static/src/xml/client_action.xml index 8a23b33333e..e4e80250b92 100644 --- a/addons/mail/static/src/xml/client_action.xml +++ b/addons/mail/static/src/xml/client_action.xml @@ -16,9 +16,7 @@ <div t-name="mail.chat.Sidebar" class="o_mail_chat_sidebar"> <div class="o_mail_chat_channel_item" data-channel-id="channel_inbox"> @ Inbox - <span t-attf-class="badge pull-right #{(!needaction_counter ? 'hide' : '')}"> - <t t-esc="needaction_counter"/> - </span> + <t t-call="mail.chat.SidebarNeedaction"/> </div> <div class="o_mail_chat_channel_item" data-channel-id="channel_starred"> <span class="fa fa-star-o"/> Starred @@ -81,6 +79,12 @@ </t> --> </div> + <t t-name="mail.chat.SidebarNeedaction"> + <span t-attf-class="o_mail_sidebar_needaction badge pull-right #{(!needaction_counter ? 'hide' : '')}"> + <t t-esc="needaction_counter"/> + </span> + </t> + <!-- Buttons of the Control Panel --> |
