details:   https://code.tryton.org/tryton/commit/3e6bf6105c91
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Sun Jan 18 13:38:12 2026 +0100
description:
        Wait for the DOM to be ready before hiding the notification indicator.

        Although the NotificationMenu is constructed on load, the DOM may not 
yet be
        ready, meaning that the observer triggered by the .hide call cannot 
find any
        other indicators to hide. Wait for the DOM to be ready to hide the 
notification
        indicator.

        Closes #14513
        (grafted from a4c2861d77a76c72c79d679da1c96b53dec162a2)
diffstat:

 sao/src/notification.js |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 3451d3e30da0 -r 3e6bf6105c91 sao/src/notification.js
--- a/sao/src/notification.js   Mon Jan 19 19:05:51 2026 +0100
+++ b/sao/src/notification.js   Sun Jan 18 13:38:12 2026 +0100
@@ -29,7 +29,11 @@
                     attributes: true,
                     attributeFilter: ['style'],
                 });
-            this.indicator.hide();
+            jQuery(document).ready(() => {
+                // Wait for the DOM to be ready to let the observer find the
+                // other indicators
+                this.indicator.hide();
+            });
         }
 
         fill() {

Reply via email to