mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
add onSave builder event prop
This commit is contained in:
1 parent
298c64a119
commit
b6f43c9b23
1 file changed
+11
@@ -372,6 +372,13 @@ export default {
|
||||
return () => {}
|
||||
}
|
||||
},
|
||||
onSave: {
|
||||
type: Function,
|
||||
required: false,
|
||||
default () {
|
||||
return () => {}
|
||||
}
|
||||
},
|
||||
withStickySubmitters: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -967,6 +974,10 @@ export default {
|
||||
}
|
||||
}),
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
}).then(() => {
|
||||
if (this.onSave) {
|
||||
this.onSave(this.template)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user