add / show comments working
This commit is contained in:
parent
a9992b0ff5
commit
6bffbc1707
10 changed files with 163 additions and 40 deletions
|
|
@ -16,6 +16,7 @@
|
|||
}}</time>
|
||||
</div>
|
||||
|
||||
<!-- Images -->
|
||||
<template v-if="step.files[0]?.type === 'image'">
|
||||
<figure
|
||||
class="card__images"
|
||||
|
|
@ -31,6 +32,8 @@
|
|||
/>
|
||||
</figure>
|
||||
</template>
|
||||
|
||||
<!-- PDF -->
|
||||
<template v-if="step.files[0]?.type === 'document'">
|
||||
<div
|
||||
@click="showPdf"
|
||||
|
|
@ -53,7 +56,7 @@ const { step } = defineProps({
|
|||
step: Object,
|
||||
});
|
||||
|
||||
const emit = defineEmits(["update:pdf"]);
|
||||
const emit = defineEmits(["update:file"]);
|
||||
|
||||
dayjs.locale("fr");
|
||||
|
||||
|
|
@ -79,7 +82,7 @@ function setStatus() {
|
|||
|
||||
function showPdf(event) {
|
||||
event.preventDefault();
|
||||
emit("update:pdf", step.files[0].url);
|
||||
emit("update:file", step.files[0]);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue