Merge pull request #6108 from LibreSign/feat/auto-save-signer-on-add

feat: auto-save signer with status 0 when added
This commit is contained in:
Vitor Mattos 2025-12-11 14:11:58 -03:00 committed by GitHub
commit 453b200bcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = {}