[obs-commits] [openSUSE/open-build-service] 01800b: Update notifications counter in Top Nav with AJAX
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 01800b002731982c9969a93c4d359918c9c63bb5 https://github.com/openSUSE/open-build-service/commit/01800b002731982c9969a9... Author: Oleksandr Orlov <oorlov@suse.com> Date: 2020-09-29 (Tue, 29 Sep 2020) Changed paths: M src/api/app/views/layouts/webui/responsive_ux/_top_navigation.html.haml A src/api/app/views/layouts/webui/responsive_ux/_unread_notifications_counter.html.haml M src/api/app/views/webui/users/notifications/_update.js.erb Log Message: ----------- Update notifications counter in Top Nav with AJAX Notifications counter did not update in real-time, when marking a notification as read/unread. Only when page was refreshed, it was updated. The commit changes the behavior to use AJAX and update the counter every time when action on notification is performed, so that there is no need to update the page to see the actual amount of unread notifications in the counter. Fixes #10169 Commit: 801f7eb9cee8b0a9709fd2119c8395fe45731a5a https://github.com/openSUSE/open-build-service/commit/801f7eb9cee8b0a9709fd2... Author: Dany Marcoux <danymarcoux@gmail.com> Date: 2020-09-29 (Tue, 29 Sep 2020) Changed paths: M src/api/app/views/layouts/webui/responsive_ux/_top_navigation.html.haml A src/api/app/views/layouts/webui/responsive_ux/_unread_notifications_counter.html.haml M src/api/app/views/webui/users/notifications/_update.js.erb Log Message: ----------- Merge pull request #10221 from OleksandrOrlov/10169_notitications_counter Update notifications counter in Top Nav with AJAX Compare: https://github.com/openSUSE/open-build-service/compare/f6580d7299d1...801f7e...
participants (1)
-
Dany Marcoux