This commit is contained in:
isUnknown 2024-11-28 14:45:45 +01:00
parent cca389f1b0
commit 7764f4651c
17 changed files with 40 additions and 47 deletions

View file

@ -30,9 +30,6 @@ const licenseKey = import.meta.env.VITE_VPV_LICENSE;
useLicense({ licenseKey });
const { openedFile, isCommentsOpen, comments } = storeToRefs(useDialogStore());
const dialog = useDialogStore();
const router = useRouter();
const route = useRoute();
const draftComment = ref(null);
@ -44,9 +41,6 @@ watch(isCommentsOpen, (newVal) => {
}
});
openedFile.value = route.query.fileIndex
? dialog.content.files[route.query.fileIndex]
: dialog.content.files[0];
watch(openedFile, (newVal) => {
removeCommentMarkers();
if (newVal.comments) {