Skip to content

Commit

Permalink
fix: Show validate at app files
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Apr 12, 2024
1 parent f417309 commit b98da48
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Components/RightSidebar/RequestSignatureTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</NcButton>
</div>
<VisibleElements />
<NcModal v-if="showSignModal" size="full" @close="closeModal()">
<NcModal v-if="modalSrc" size="full" @close="closeModal()">
<iframe :src="modalSrc" class="iframe" />
</NcModal>
</div>
Expand Down Expand Up @@ -111,7 +111,6 @@ export default {
hasLoading: false,
signerToEdit: {},
modalSrc: '',
showSignModal: false,
canRequestSign: loadState('libresign', 'can_request_sign', false),
}
},
Expand Down Expand Up @@ -167,9 +166,15 @@ export default {
},
methods: {
closeModal() {
this.showSignModal = false
this.modalSrc = ''
},
validationFile() {
console.log('validationFile')
if (this.useModal) {
const route = router.resolve({ name: 'ValidationFileExternal', params: { uuid: this.filesStore.getFile().uuid } })
this.modalSrc = route.href
return
}
this.$router.push({ name: 'ValidationFile', params: { uuid: this.filesStore.getFile().uuid } })
this.sidebarStore.hideSidebar()
},
Expand Down Expand Up @@ -209,7 +214,6 @@ export default {
if (this.useModal) {
const route = router.resolve({ name: 'SignPDFExternal', params: { uuid } })
this.modalSrc = route.href
this.showSignModal = true
return
}
this.signStore.setDocumentToSign(this.filesStore.getFile())
Expand Down

0 comments on commit b98da48

Please sign in to comment.