add / show comments working

This commit is contained in:
isUnknown 2024-10-23 11:32:51 +02:00
parent a9992b0ff5
commit 6bffbc1707
10 changed files with 163 additions and 40 deletions

View file

@ -3,14 +3,14 @@
<Header :title="page.content.title" />
<!-- Kanban: Status Brief Enrichi -->
<PdfViewer v-if="pdf" :src="pdf" @close="pdf = null" />
<PdfViewer v-if="file" :file="file" @close="file = null" />
<div class="kanban">
<ProjectStep
v-for="step in page.steps"
:key="step"
:step="step"
@update:pdf="changePdf"
@update:file="changeFile"
>
</ProjectStep>
<!-- <section
@ -168,7 +168,7 @@ import { ref } from "vue";
const { page } = storeToRefs(usePageStore());
const user = useUserStore().user;
const pdf = ref(null);
const file = ref(null);
function setStepStatus(stepName) {
const stepIndex = steps.indexOf(stepName);
@ -178,13 +178,8 @@ function setStepStatus(stepName) {
}
}
function changePdf(src) {
pdf.value = src;
}
function hidePdf() {
console.log("test");
pdf.value = null;
function changeFile(newFile) {
file.value = newFile;
}
</script>