diff --git a/src/Components/RightSidebar/RequestSignatureTab.vue b/src/Components/RightSidebar/RequestSignatureTab.vue index 6dc882140a..4f7641c6e4 100644 --- a/src/Components/RightSidebar/RequestSignatureTab.vue +++ b/src/Components/RightSidebar/RequestSignatureTab.vue @@ -56,7 +56,9 @@ - + @@ -157,16 +159,20 @@ export default { }, }, async mounted() { + window.addEventListener('message', this.closeModal) subscribe('libresign:edit-signer', this.editSigner) this.filesStore.disableIdentifySigner() }, beforeUnmount() { + window.removeEventListener('message', this.closeModal) unsubscribe('libresign:edit-signer') }, methods: { - closeModal() { - this.modalSrc = '' - this.filesStore.flushSelectedFile() + closeModal(message) { + if (message.data.type === 'close-modal') { + this.modalSrc = '' + this.filesStore.flushSelectedFile() + } }, validationFile() { if (this.useModal) { diff --git a/src/views/SignPDF/_partials/Sign.vue b/src/views/SignPDF/_partials/Sign.vue index e9f6e38c62..7da0462e94 100644 --- a/src/views/SignPDF/_partials/Sign.vue +++ b/src/views/SignPDF/_partials/Sign.vue @@ -4,17 +4,16 @@ - - - - - - {{ t('libresign', 'Sign the document.') }} - - + + + + + {{ t('libresign', 'Sign the document.') }} + {{ t('libresign', 'Please define your sign password') }} @@ -42,6 +41,13 @@ {{ t('libresign', 'Unable to sign.') }} + + {{ t('libresign', 'Cancel') }} +
{{ t('libresign', 'Please define your sign password') }} @@ -42,6 +41,13 @@ {{ t('libresign', 'Unable to sign.') }}