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
+3 -1
View File
@@ -70,7 +70,6 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
console.error(error);
} else {
notification.acknowledged = true;
$scope.$parent.notificationAcknowledged();
}
callback();
@@ -78,6 +77,9 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
}, function (error) {
if (error) console.error(error);
// refresh the main navbar indicator
$scope.$parent.notificationAcknowledged();
$scope.hasUnread = false;
$scope.clearAllBusy = false;
});