From 075adea637a791db76ffd5269db59ec1da0a0e27 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Thu, 11 Dec 2025 15:53:38 -0300 Subject: [PATCH] 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> --- src/store/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/files.js b/src/store/files.js index 71fb93b98..990d576f0 100644 --- a/src/store/files.js +++ b/src/store/files.js @@ -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, }, }