diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-04-10 15:53:51 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-04-10 17:15:26 +0200 |
| commit | 3f7c75ef1f6094b1d47ec8f8564a5c0511d2d6ba (patch) | |
| tree | 10c610b8823a249515c10c507b46a055cefa5f8a /addons/mail/static/tests | |
| parent | 07ae0ccc4e4b4f79cf299f2a54ad3ee5e3a250af (diff) | |
[IMP] mail: display white background for user notifications in chatter
User notifications are defined as
* notes;
* pushed to user Inbox or email through classic notification process;
* not linked to any document, meaning model and res_id are void;
When pushed in user's Inbox they are currently displayed with a gray
background like all notes. However UX experts think it should use a white
background to be easier to spot in chatter. This commit makes it work.
From now on discussion and user's notifications are displayed using a white
background. This commit is related to task ID 1829872.
Diffstat (limited to 'addons/mail/static/tests')
| -rw-r--r-- | addons/mail/static/tests/chat_window_tests.js | 1 | ||||
| -rw-r--r-- | addons/mail/static/tests/chatter_tests.js | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/tests/chat_window_tests.js b/addons/mail/static/tests/chat_window_tests.js index ab5a9f03538..05df8461d18 100644 --- a/addons/mail/static/tests/chat_window_tests.js +++ b/addons/mail/static/tests/chat_window_tests.js @@ -37,6 +37,7 @@ QUnit.module('mail', { id: 1, is_note: false, is_discussion: true, + is_notification: false, is_starred: false, model: 'partner', res_id: 2 diff --git a/addons/mail/static/tests/chatter_tests.js b/addons/mail/static/tests/chatter_tests.js index 56ee5076479..8c1edc2f622 100644 --- a/addons/mail/static/tests/chatter_tests.js +++ b/addons/mail/static/tests/chatter_tests.js @@ -389,6 +389,7 @@ QUnit.test('chatter: post, receive and star messages', function (assert) { id: 1, is_note: false, is_discussion: true, + is_notification: false, is_starred: false, model: 'partner', res_id: 2, @@ -433,6 +434,7 @@ QUnit.test('chatter: post, receive and star messages', function (assert) { id: msg_id, is_note: args.kwargs.subtype === 'mail.mt_note', is_discussion: args.kwargs.subtype === 'mail.mt_comment', + is_notification: false, is_starred: false, model: 'partner', res_id: 2, |
