diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-01-07 13:07:41 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-01-14 11:22:25 +0100 |
| commit | b3868a613c77e2169be1947ce61cbdfcd62a7bf9 (patch) | |
| tree | 1a616cc4a4d90cafa11a3df7219ed84d9d5c3ab0 /addons/mail/static/src/xml/client_action.xml | |
| parent | d93231afe201997305759767e24e6df0972175fe (diff) | |
[IMP] mail: needaction/unread messages counters
Some UI changes:
- Unread messages in chat are now displayed as needactions in the Discuss's
sidebar (badge with counter of unread messages, instead of simply bolding the
channel name).
- The counter displayed in the navbar is now the sum of needactions and total
of unread messages in chat.
- The counter displayed next to Inbox is still the needaction counter.
For consistency between tabs/browsers/devices, the channel_seen info is now
broadcasted, meaning that every tab/browser/device will be noticed.
Also now correctly increment the unread counter of a channel if the received
message is a needaction.
Diffstat (limited to 'addons/mail/static/src/xml/client_action.xml')
| -rw-r--r-- | addons/mail/static/src/xml/client_action.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/client_action.xml b/addons/mail/static/src/xml/client_action.xml index 55be6233d22..04d45eb9bdc 100644 --- a/addons/mail/static/src/xml/client_action.xml +++ b/addons/mail/static/src/xml/client_action.xml @@ -81,7 +81,7 @@ </t> <t t-name="mail.chat.SidebarItems"> <t t-foreach="channels" t-as="channel"> - <t t-set="counter" t-value="channel.needaction_counter"/> + <t t-set="counter" t-value="channel.is_chat ? channel.unread_counter : channel.needaction_counter"/> <div t-if="channel.type === channel_type" t-att-data-channel-id="channel.id" t-attf-class="o_mail_chat_channel_item #{channel.unread_counter ? ' o_unread_message' : ''} #{(active_channel_id == channel.id) ? 'o_active': ''}"> <span t-if="display_status"> |
