From 66d95e7dcc14da30c23518d415966e3ff5ee5132 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Thu, 11 Dec 2025 13:27:01 -0300 Subject: [PATCH] feat: auto-save signer with status 0 when added Automatically saves the signer to the server with status 0 (draft) when the user adds a new signer through the Add Signer dialog. This eliminates the need for a separate manual save action after adding each signer. The PATCH request is sent to /apps/libresign/api/v1/request-signature with status: 0 immediately after the signer is added to the local state. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- src/Components/Request/IdentifySigner.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Components/Request/IdentifySigner.vue b/src/Components/Request/IdentifySigner.vue index 834d3d5e18..c79fa82005 100644 --- a/src/Components/Request/IdentifySigner.vue +++ b/src/Components/Request/IdentifySigner.vue @@ -113,7 +113,7 @@ export default { this.displayName = signer?.displayName ?? '' this.identify = signer?.id ?? '' }, - saveSigner() { + async saveSigner() { if (!this.signer?.method || !this.signer?.id) { return } @@ -127,6 +127,13 @@ export default { }, ], }) + + try { + await this.filesStore.saveWithVisibleElements({ visibleElements: [] }) + } catch (error) { + console.error('Error saving signer:', error) + } + this.displayName = '' this.identify = '' this.signer = {}