fix pageIndex pb
This commit is contained in:
parent
8b9bd9e4ab
commit
5f5c53e284
3 changed files with 35 additions and 13 deletions
|
|
@ -30,7 +30,7 @@
|
|||
>
|
||||
<span class="sr-only">Afficher les commentaires</span>
|
||||
</button>
|
||||
<Comments v-if="isCommentsOpen" @show-draft-bubble="showDraftBubble" />
|
||||
<Comments v-if="isCommentsOpen" @show-draft-marker="showDraftMarker" />
|
||||
</div>
|
||||
</Dialog>
|
||||
</template>
|
||||
|
|
@ -76,7 +76,6 @@ watch(isCommentsOpen, (newVal) => {
|
|||
watch(openedFile, (newVal) => {
|
||||
removeCommentMarkers();
|
||||
if (newVal.comments) {
|
||||
console.log(newVal.comments);
|
||||
setCommentMarkers();
|
||||
}
|
||||
});
|
||||
|
|
@ -160,8 +159,7 @@ function removeCommentMarkers() {
|
|||
});
|
||||
}
|
||||
|
||||
function showDraftBubble(draftComment) {
|
||||
console.log(draftComment);
|
||||
function showDraftMarker(draftComment) {
|
||||
const bubble = document.createElement("a");
|
||||
|
||||
bubble.classList.add("comment-marker");
|
||||
|
|
@ -175,7 +173,6 @@ function showDraftBubble(draftComment) {
|
|||
);
|
||||
|
||||
container.appendChild(bubble);
|
||||
console.log(container);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue