Fix pending checklist item flag in postinstall
This commit is contained in:
@@ -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({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-html="marked.parse(app.manifest.postInstallMessage)"></div>
|
||||
<div v-if="app.manifest.postInstallMessage" v-html="marked.parse(app.manifest.postInstallMessage)"></div>
|
||||
<div v-if="app.manifest.documentationUrl" v-html="$t('app.appInfo.appDocsUrl', { docsUrl: app.manifest.documentationUrl, title: app.manifest.title, forumUrl: (app.manifest.forumUrl || 'https://forum.cloudron.io') })"></div>
|
||||
|
||||
<div class="app-info-checklist" v-show="hasPendingCheclistItems">
|
||||
<div class="app-info-checklist" v-show="hasPendingChecklistItems">
|
||||
<label class="control-label">{{ $t('app.appInfo.checklist') }}</label>
|
||||
<div v-for="(item, key) in app.checklist" :key="key">
|
||||
<div class="checklist-item" v-show="!item.acknowledged">
|
||||
|
||||
Reference in New Issue
Block a user