From f80bbb4b2a1230ba543e97d3da01c7b2c52d24cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Thu, 30 Aug 2018 16:10:20 +0200 Subject: [IMP] mail, mail_bot: improved push notifications permission response This commit makes small improvements on the messaging menu with the new module `mail_bot`: [IMP] When OdooBot has a request, it now adds "+1" to the counter of the messaging menu. The related preview also has a bold title, and displays "(1)" next to the title. [REF] Static previews are no longer in mail_service. This was only used for "OdooBot has a request" preview. This logic has now been moved to the module `mail_bot` (was previously in `mail`). [FIX] Title of response of push notifications permission clearly states whether permission has been granted or denied (was displaying "[Object object]" before this commit). Task-ID 1877502 --- addons/mail/static/tests/document_thread_window_tests.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'addons/mail/static/tests/document_thread_window_tests.js') diff --git a/addons/mail/static/tests/document_thread_window_tests.js b/addons/mail/static/tests/document_thread_window_tests.js index a14b2ebc159..d7064b8695d 100644 --- a/addons/mail/static/tests/document_thread_window_tests.js +++ b/addons/mail/static/tests/document_thread_window_tests.js @@ -84,12 +84,7 @@ QUnit.module('Document Thread', { partner_id: partnerID, // so that needaction messages are treated as needactions }; this.services = mailTestUtils.getMailServices(); - this.MailService = this.services.mail_service; - this.MailService.prototype.IS_STATIC_PREVIEW_ENABLED = false; }, - afterEach: function () { - this.MailService.prototype.IS_STATIC_PREVIEW_ENABLED = true; - } }); QUnit.test('open a document thread in a thread window', function (assert) { -- cgit v1.2.3