mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
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:
commit
453b200bcf
1 changed files with 8 additions and 1 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue