From c5ceb2fd5e1b6f78f14ae64e9146b8e06e57aa84 Mon Sep 17 00:00:00 2001 From: "Michael (mcm)" Date: Thu, 6 Jul 2023 11:51:09 +0000 Subject: [PATCH] [FIX] web: fix notification position MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes the position of the notification manager which was wrongly placed in the dom and caused the notifications to be behind dialog's backdrop. closes odoo/odoo#127631 X-original-commit: 381d574974bcfe274291628889459148ad741812 Signed-off-by: Mathieu Duckerts-Antoine (dam) Signed-off-by: Michaƫl Mattiello (mcm) --- .../src/core/notifications/notification_service.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/core/notifications/notification_service.js b/addons/web/static/src/core/notifications/notification_service.js index 08d826f1817..3c290b81285 100644 --- a/addons/web/static/src/core/notifications/notification_service.js +++ b/addons/web/static/src/core/notifications/notification_service.js @@ -29,10 +29,14 @@ export const notificationService = { let notifId = 0; const notifications = reactive({}); - registry.category("main_components").add("NotificationContainer", { - Component: NotificationContainer, - props: { notifications }, - }); + registry.category("main_components").add( + "NotificationContainer", + { + Component: NotificationContainer, + props: { notifications }, + }, + { sequence: 100 } + ); /** * @param {string} message