Skip to content

Commit

Permalink
Merge pull request #2457 from LibreSign/backport/2456/stable28
Browse files Browse the repository at this point in the history
[stable28] Make possible generate thumbs to multiple signers
  • Loading branch information
vitormattos authored Mar 6, 2024
2 parents 1f54046 + e7fef17 commit 7be3cfa
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 7be3cfa

Please sign in to comment.