Skip to content

Commit 453b200

Browse files
authored
Merge pull request #6108 from LibreSign/feat/auto-save-signer-on-add
feat: auto-save signer with status 0 when added
2 parents efacc43 + 66d95e7 commit 453b200

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Components/Request/IdentifySigner.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default {
113113
this.displayName = signer?.displayName ?? ''
114114
this.identify = signer?.id ?? ''
115115
},
116-
saveSigner() {
116+
async saveSigner() {
117117
if (!this.signer?.method || !this.signer?.id) {
118118
return
119119
}
@@ -127,6 +127,13 @@ export default {
127127
},
128128
],
129129
})
130+
131+
try {
132+
await this.filesStore.saveWithVisibleElements({ visibleElements: [] })
133+
} catch (error) {
134+
console.error('Error saving signer:', error)
135+
}
136+
130137
this.displayName = ''
131138
this.identify = ''
132139
this.signer = {}

0 commit comments

Comments
 (0)