dashboard: show pending admin checklist in apps list/grid
This commit is contained in:
@@ -54,6 +54,11 @@ 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.setOrderBy = function (by) {
|
||||
if (by === $scope.orderBy) {
|
||||
$scope.orderByReverse = !$scope.orderByReverse;
|
||||
|
||||
Reference in New Issue
Block a user