new comment showing in comments panel
This commit is contained in:
parent
26369ad71b
commit
2c99811caf
5 changed files with 88 additions and 34 deletions
|
|
@ -30,12 +30,7 @@
|
|||
>
|
||||
<span class="sr-only">Afficher les commentaires</span>
|
||||
</button>
|
||||
<Comments
|
||||
v-if="isCommentsOpen"
|
||||
:current-page-index="currentPageIndex"
|
||||
:file="file"
|
||||
:comments="file.comments ?? []"
|
||||
/>
|
||||
<Comments v-if="isCommentsOpen" />
|
||||
</div>
|
||||
</Dialog>
|
||||
</template>
|
||||
|
|
@ -48,7 +43,9 @@ import { ref, watch } from "vue";
|
|||
import { useDialogStore } from "../../../stores/dialog";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
const file = useDialogStore().content.files[0];
|
||||
const dialog = useDialogStore();
|
||||
dialog.openedFile = dialog.content.files[0];
|
||||
const file = dialog.openedFile;
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
|
|
@ -124,7 +121,6 @@ const onPdfLoaded = () => {
|
|||
};
|
||||
|
||||
function setCommentBubbles() {
|
||||
console.log(file.comments);
|
||||
if (!file.comments) return;
|
||||
file.comments.forEach((comment) => {
|
||||
const bubble = document.createElement("a");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue