try #50
This commit is contained in:
parent
c8f99347d2
commit
c7fbbe1c01
4 changed files with 22 additions and 5 deletions
Binary file not shown.
|
|
@ -0,0 +1,9 @@
|
||||||
|
Cover:
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Uuid: b2ltra1aFapPGYX7
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Template: pdf
|
||||||
|
|
@ -6,7 +6,7 @@ Rawglass: - file://WrFkfiMVZuxwdYad
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Finishedglass: - file://6pNYNJpB2BCTWAEn
|
Finishedglass: - file://b2ltra1aFapPGYX7
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<VPdfViewer
|
<VPdfViewer
|
||||||
|
v-if="!isViewerDisabled"
|
||||||
:darkMode="true"
|
:darkMode="true"
|
||||||
:initialThumbnailsVisible="true"
|
:initialThumbnailsVisible="true"
|
||||||
:src="openedFile.url"
|
:src="openedFile.url"
|
||||||
|
|
@ -33,6 +34,8 @@ const { openedFile, isCommentsOpen, comments } = storeToRefs(useDialogStore());
|
||||||
|
|
||||||
const draftComment = ref(null);
|
const draftComment = ref(null);
|
||||||
|
|
||||||
|
const isViewerDisabled = ref(false);
|
||||||
|
|
||||||
watch(isCommentsOpen, (newVal) => {
|
watch(isCommentsOpen, (newVal) => {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
setCommentMarkers();
|
setCommentMarkers();
|
||||||
|
|
@ -42,10 +45,15 @@ watch(isCommentsOpen, (newVal) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(openedFile, (newVal) => {
|
watch(openedFile, (newVal) => {
|
||||||
removeCommentMarkers();
|
isViewerDisabled.value = true;
|
||||||
if (newVal.comments) {
|
|
||||||
setCommentMarkers();
|
setTimeout(() => {
|
||||||
}
|
isViewerDisabled.value = false;
|
||||||
|
removeCommentMarkers();
|
||||||
|
if (newVal.comments) {
|
||||||
|
setCommentMarkers();
|
||||||
|
}
|
||||||
|
}, 100);
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentPageIndex = ref(1);
|
const currentPageIndex = ref(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue