Update toplevel notification status

This commit is contained in:
Johannes Zellner
2019-01-08 12:36:08 +01:00
parent fa04bea64b
commit 38cb2201a9
2 changed files with 8 additions and 0 deletions

View File

@@ -127,6 +127,12 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
});
};
// update state of acknowledged notification
$scope.notificationAcknowledged = function (notificationId) {
// remove notification from list
$scope.notifications = $scope.notifications.filter(function (n) { return n.id !== notificationId; });
};
Client.getStatus(function (error, status) {
if (error) return $scope.error(error);