diff --git a/src/views/notifications.html b/src/views/notifications.html
index 881bd745b..b7089e46f 100644
--- a/src/views/notifications.html
+++ b/src/views/notifications.html
@@ -3,7 +3,7 @@
{{ 'notifications.title' | tr }}
-
+
diff --git a/src/views/notifications.js b/src/views/notifications.js
index aa31ceba5..6c378cdb8 100644
--- a/src/views/notifications.js
+++ b/src/views/notifications.js
@@ -9,6 +9,7 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
$scope.notifications = [];
$scope.activeNotification = null;
$scope.busy = true;
+ $scope.hasUnread = false;
$scope.currentPage = 1;
$scope.perPage = 20;
@@ -27,6 +28,7 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
});
$scope.notifications = result;
+ $scope.hasUnread = !!result.find(function (n) { return !n.acknowledged; });
$scope.busy = false;
});
@@ -76,6 +78,7 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
}, function (error) {
if (error) console.error(error);
+ $scope.hasUnread = false;
$scope.clearAllBusy = false;
});
};