dashboard: show number of pending checklist items
This commit is contained in:
@@ -54,9 +54,9 @@ angular.module('Application').controller('AppsController', ['$scope', '$translat
|
||||
if (tr['app.states.updateAvailable']) $scope.states[3].label = tr['app.states.updateAvailable'];
|
||||
});
|
||||
|
||||
$scope.hasPendingChecklistItems = function (app) {
|
||||
if (!app.checklist) return false;
|
||||
return !!Object.keys(app.checklist).find(function (key) { return !app.checklist[key].acknowledged; });
|
||||
$scope.pendingChecklistItems = function (app) {
|
||||
if (!app.checklist) return 0;
|
||||
return Object.keys(app.checklist).filter(function (key) { return !app.checklist[key].acknowledged; }).length;
|
||||
};
|
||||
|
||||
$scope.setOrderBy = function (by) {
|
||||
|
||||
Reference in New Issue
Block a user