Add attachment indicator

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-06-19 18:00:04 +02:00
parent ee5a54a575
commit 0137b882c5
7 changed files with 64 additions and 12 deletions
+7
View File
@@ -353,4 +353,11 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
};
};
$scope.attachmentCount = function(attachments) {
if (Array.isArray(attachments)) {
return attachments.filter((obj) => obj.deletedAt === 0).length;
}
return attachments;
};
});