From d3738f2f3156feb73e03e8aad9a5843b793332c7 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 29 Apr 2025 10:00:58 +0200 Subject: [PATCH] Fix pending checklist item flag in postinstall --- dashboard/src/components/PostInstallDialog.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboard/src/components/PostInstallDialog.vue b/dashboard/src/components/PostInstallDialog.vue index d4f112901..ece2d16e6 100644 --- a/dashboard/src/components/PostInstallDialog.vue +++ b/dashboard/src/components/PostInstallDialog.vue @@ -6,7 +6,7 @@ import { Dialog } from 'pankow'; const dialog = useTemplateRef('dialog'); const app = ref(null); -const hasPendingCheclistItems = ref(false); +const hasPendingChecklistItems = ref(false); const acknowledge = ref(false); function onConfirm() { @@ -19,7 +19,7 @@ defineExpose({ async open(a, ack = false) { app.value = a; acknowledge.value = ack; - hasPendingCheclistItems.value = !Object.keys(a.checklist).find((i) => a.checklist[i].acknowledged); + hasPendingChecklistItems.value = !!Object.keys(a.checklist).find((i) => !a.checklist[i].acknowledged); dialog.value.open(); } }); @@ -45,10 +45,10 @@ defineExpose({ -
+
-
+