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

@@ -394,6 +394,8 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
Client.ackNotification(notification.id, function (error) {
if (error) return console.error(error);
$scope.$parent.notificationAcknowledged(notification.id);
if (notification.action) window.location = notification.action;
else refreshNotifications();
});