pdf > comments > new comments : show email address if no name
This commit is contained in:
parent
6bffbc1707
commit
ea48094bc7
8 changed files with 52 additions and 43 deletions
|
|
@ -34,6 +34,7 @@
|
|||
:current-page-index="currentPageIndex"
|
||||
:file="file"
|
||||
:comments="file.comments"
|
||||
@update:file="changeFile"
|
||||
/>
|
||||
</div>
|
||||
</Dialog>
|
||||
|
|
@ -49,7 +50,7 @@ const { file } = defineProps({
|
|||
file: Object,
|
||||
});
|
||||
|
||||
const emit = defineEmits("close");
|
||||
const emits = defineEmits(["close", "update:file"]);
|
||||
|
||||
const licenseKey = import.meta.env.VITE_VPV_LICENSE;
|
||||
useLicense({ licenseKey });
|
||||
|
|
@ -57,7 +58,7 @@ useLicense({ licenseKey });
|
|||
// Variables
|
||||
const isOpen = ref(true);
|
||||
watch(isOpen, (newValue) => {
|
||||
emit("close");
|
||||
emits("close");
|
||||
});
|
||||
const isCommentsOpen = ref(false);
|
||||
const currentPageIndex = ref(1);
|
||||
|
|
@ -102,6 +103,10 @@ const onPdfLoaded = () => {
|
|||
|
||||
observePages();
|
||||
};
|
||||
|
||||
function changeFile(newFile) {
|
||||
emits("update:file", newFile);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue