diff options
| author | Xavier Dubuc <xdu@odoo.com> | 2020-09-04 16:08:57 +0000 |
|---|---|---|
| committer | Xavier Dubuc <xdu@odoo.com> | 2020-09-18 07:27:33 +0000 |
| commit | ca457e990c87cd0405a2b7416a6c8064a9a83e21 (patch) | |
| tree | 4994ce07b35be4c88d69ce06638b3e8e45a21816 /addons/mail/static/src/components/message | |
| parent | 6e83898e17d4aac93ce11b20d589b5a637eb6a8c (diff) | |
[FIX] mail: fix notification partners display in popover
Handle notification creation in convertData correctly.
task-2324260
closes odoo/odoo#57970
X-original-commit: 7305bcf4edcbaa31b86bdc7b4ece460f30515c27
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message')
3 files changed, 7 insertions, 7 deletions
diff --git a/addons/mail/static/src/components/message/message.scss b/addons/mail/static/src/components/message/message.scss index 924fa75d113..b91aacba91c 100644 --- a/addons/mail/static/src/components/message/message.scss +++ b/addons/mail/static/src/components/message/message.scss @@ -335,7 +335,7 @@ } } -.o_Message_notificationIconContainer { +.o_Message_notificationIconClickable { color: gray('600'); cursor: pointer; diff --git a/addons/mail/static/src/components/message/message.xml b/addons/mail/static/src/components/message/message.xml index d739cb1769f..a33ded5af81 100644 --- a/addons/mail/static/src/components/message/message.xml +++ b/addons/mail/static/src/components/message/message.xml @@ -94,13 +94,13 @@ </t> <t t-if="threadView and message.originThread and message.originThread === threadView.thread and message.notifications.length > 0"> <t t-if="message.failureNotifications.length > 0"> - <span class="o_Message_notificationIconContainer o-error" t-on-click="_onClickFailure"> + <span class="o_Message_notificationIconClickable o-error" t-on-click="_onClickFailure"> <i name="failureIcon" class="o_Message_notificationIcon fa fa-envelope"/> </span> </t> <t t-else=""> <Popover> - <span class="o_Message_notificationIconContainer"> + <span class="o_Message_notificationIconClickable"> <i name="notificationIcon" class="o_Message_notificationIcon fa fa-envelope-o"/> </span> <t t-set="opened"> diff --git a/addons/mail/static/src/components/message/message_tests.js b/addons/mail/static/src/components/message/message_tests.js index eefd6f3294d..dedc9434f2a 100644 --- a/addons/mail/static/src/components/message/message_tests.js +++ b/addons/mail/static/src/components/message/message_tests.js @@ -219,7 +219,7 @@ QUnit.test('Notification Sent', async function (assert) { ); assert.containsOnce( document.body, - '.o_Message_notificationIconContainer', + '.o_Message_notificationIconClickable', "should display the notification icon container" ); assert.containsOnce( @@ -234,7 +234,7 @@ QUnit.test('Notification Sent', async function (assert) { ); await afterNextRender(() => { - document.querySelector('.o_Message_notificationIconContainer').click(); + document.querySelector('.o_Message_notificationIconClickable').click(); }); assert.containsOnce( document.body, @@ -310,7 +310,7 @@ QUnit.test('Notification Error', async function (assert) { ); assert.containsOnce( document.body, - '.o_Message_notificationIconContainer', + '.o_Message_notificationIconClickable', "should display the notification icon container" ); assert.containsOnce( @@ -325,7 +325,7 @@ QUnit.test('Notification Error', async function (assert) { ); await afterNextRender(() => { - document.querySelector('.o_Message_notificationIconContainer').click(); + document.querySelector('.o_Message_notificationIconClickable').click(); }); assert.verifySteps( ['do_action'], |
