mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
refactor: rename requestSignaturesWithVisibleElements to updateSignatureRequest
- Add status parameter with default value 1 - Make method more flexible for different status transitions Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
4b119ed3bb
commit
075adea637
1 changed files with 2 additions and 2 deletions
|
|
@ -399,7 +399,7 @@ export const useFilesStore = function(...args) {
|
|||
this.addFile(data.ocs.data.data)
|
||||
return data.ocs.data
|
||||
},
|
||||
async requestSignaturesWithVisibleElements({ visibleElements = [], signers = null, uuid = null, nodeId = null }) {
|
||||
async updateSignatureRequest({ visibleElements = [], signers = null, uuid = null, nodeId = null, status = 1 }) {
|
||||
const file = this.getFile()
|
||||
const config = {
|
||||
url: generateOcsUrl('/apps/libresign/api/v1/request-signature'),
|
||||
|
|
@ -408,7 +408,7 @@ export const useFilesStore = function(...args) {
|
|||
name: file?.name,
|
||||
users: signers || file.signers,
|
||||
visibleElements,
|
||||
status: 1,
|
||||
status,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue