Skip to content

Commit

Permalink
Merge pull request #2456 from LibreSign/bugfix/generate-thumb-to-mult…
Browse files Browse the repository at this point in the history
…iple-files

Make possible generate thumbs to multiple signers
  • Loading branch information
vitormattos authored Mar 6, 2024
2 parents d26ccf4 + 8182404 commit dc84611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Components/File/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export default {
return null
}
let previewUrl = ''
if (Object.hasOwn(this.filesStore.getFile(), 'uuid')) {
if (this.filesStore.files[this.currentNodeId]?.uuid?.length > 0) {
previewUrl = generateOcsUrl('/apps/libresign/api/v1/file/thumbnail/{nodeId}', {
nodeId: this.currentNodeId,
})
} else {
previewUrl = window.location.origin + generateUrl('/core/preview?fileId={fileid}', {
fileid: this.filesStore.getFile().nodeId,
fileid: this.currentNodeId,
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Request/RequestSignature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div v-else
id="request-signature-list-signers">
<NcButton v-if="canRequestSign && !filesStore.isFullSigned()"
:type="hasSigners ? 'primary' : 'secondary'"
:type="hasSigners ? 'secondary' : 'primary'"
@click="addSigner">
{{ t('libresign', 'Add signer') }}
</NcButton>
Expand Down

0 comments on commit dc84611

Please sign in to comment.