Ensure the navbar notification number is correctly in-sync
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user