Ensure the navbar notification number is correctly in-sync

This commit is contained in:
Johannes Zellner
2022-05-23 17:30:52 +02:00
parent 6a6b1d8b3b
commit c5b022cc19
2 changed files with 4 additions and 3 deletions

View File

@@ -73,8 +73,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
// update state of acknowledged notification
$scope.notificationAcknowledged = function () {
if ($scope.notificationCount === 0) return; // already down to 0
$scope.notificationCount--;
refreshNotifications();
};
function init() {