Bring checklist indicator back

This commit is contained in:
Johannes Zellner
2025-05-20 10:39:37 +02:00
parent d0c9e17090
commit 60b1dcf5ee
2 changed files with 47 additions and 12 deletions
+6
View File
@@ -70,6 +70,11 @@ function appProgressMessage(app) {
return app.message || (app.error ? app.error.message : '');
}
function pendingChecklistItems(app) {
if (!app.checklist) return 0;
return Object.keys(app.checklist).filter(function (key) { return !app.checklist[key].acknowledged; }).length;
}
function create() {
const accessToken = localStorage.token;
@@ -458,4 +463,5 @@ export default {
installationStateLabel,
installationActive,
appProgressMessage,
pendingChecklistItems,
};