Skip to content

Commit e4c86c7

Browse files
authored
Merge pull request #6110 from LibreSign/backport/6108/stable32
[stable32] feat: auto-save signer with status 0 when added
2 parents 881ffc6 + 3617e7c commit e4c86c7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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)