Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Oct 31, 2024
1 parent ddee72b commit 65bd98c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/store/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const useFilesStore = function(...args) {
async delete(file) {
file = this.getFile(file)
if (file?.uuid !== undefined) {
const response = await axios.delete(generateOcsUrl('/apps/libresign/api/v1/sign/file_id/{fileId}', {
await axios.delete(generateOcsUrl('/apps/libresign/api/v1/sign/file_id/{fileId}', {
fileId: file.nodeId,
}))
}
Expand Down
20 changes: 13 additions & 7 deletions src/views/FilesList/FileEntry/FileEntryActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,28 @@ export default {
this.openedMenu = null
this.sidebarStore.hideSidebar()
if (action.id === 'sign') {
const sign_uuid = this.source.signers
const signUuid = this.source.signers
.reduce((accumulator, signer) => {
if (signer.me) {
return signer.sign_uuid
}
return accumulator
}, '')
this.signStore.setDocumentToSign(this.source)
this.$router.push({ name: 'SignPDF', params: {
uuid: sign_uuid
}})
this.$router.push({
name: 'SignPDF',
params: {
uuid: signUuid,
},
})
this.filesStore.selectFile(this.source.nodeId)
} else if (action.id === 'validate') {
this.$router.push({ name: 'ValidationFile', params: {
uuid: this.source.uuid,
} })
this.$router.push({
name: 'ValidationFile',
params: {
uuid: this.source.uuid,
},
})
} else if (action.id === 'delete') {
this.confirmDelete = true
}
Expand Down

0 comments on commit 65bd98c

Please sign in to comment.