Rework the notification style now that it is in its own view

This commit is contained in:
Johannes Zellner
2019-01-09 17:16:41 +01:00
parent d2d75b8e41
commit 9c66a4ef4e
3 changed files with 31 additions and 33 deletions

View File

@@ -15,6 +15,10 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
Client.getNotifications($scope.notifications.all ? null : false, 1, 20, function (error, result) {
if (error) return console.error(error);
result.forEach(function (r) {
r.isCollapsed = r.acknowledged;
});
$scope.notifications.notifications = result;
$scope.notifications.busy = false;