Number of pending notifications does not reduce to 0 after marking all notification to read in the bell icon

Hi JMIX Team,

We are using JMIX 2.4.1 and the Notification AddOn, When the user click on the bell with number of notifications, all pending notifications are shown.

image

After marking all notifications to read, the number of pending notification in the bell are not automatically set to 0, this only happens after reloading the page.

image

I understand this will have low priority, but it will be nice if the team can make this more user friendly.

Besta regards.

Hello,

Unfortunately, I cannot reproduce the problem, the bell updated every time I click read/unread and “mark all as read” buttons. Could you reproduce the issue in a simple demo project?

Hi Roman,

Actually it is true and i just realized that if you create the notification using the standard jmix addon screen it works perfectly. We create the notification with JAVA, we will check and create a demo project if we cannot solve it.

Thanks

1 Like

Hi Roman,

We just realized in which case the pending notification does not decreased.

The notification does not decrease if you read the notification with the substitution droplist. It works fine if you log with the real user.

Let me explain.

If you uses another user via the substitution user.

image

Even after marking all read, the number of pending notification does not decrease to 0.
image

The number decrease only after pressing F5.

This funcionality works perfectly if the user logged in with his user and password, in this case the notification pending are decrease correlty to 0.

Best Regards.

1 Like

Thank you for investigating the problem!

I created an issue in GitHub: NotificationIndicator does not update its counter if the user is substituted #4007.