dashboard: show pending admin checklist in apps list/grid

This commit is contained in:
Johannes Zellner
2024-06-18 16:37:21 +02:00
parent f15b4a4f4b
commit 98e97a0f9b
3 changed files with 35 additions and 4 deletions

View File

@@ -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;