mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add builder on upload callback
This commit is contained in:
1 parent
203f4633f7
commit
441c1d7044
1 file changed
+15
@@ -351,6 +351,13 @@ export default {
|
||||
required: false,
|
||||
default: true
|
||||
},
|
||||
onUpload: {
|
||||
type: Function,
|
||||
required: false,
|
||||
default () {
|
||||
return () => {}
|
||||
}
|
||||
},
|
||||
withStickySubmitters: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -732,6 +739,10 @@ export default {
|
||||
this.scrollIntoDocument(schema[0])
|
||||
})
|
||||
|
||||
if (this.onUpload) {
|
||||
this.onUpload(this.template)
|
||||
}
|
||||
|
||||
this.save()
|
||||
},
|
||||
updateName (value) {
|
||||
@@ -765,6 +776,10 @@ export default {
|
||||
})
|
||||
})
|
||||
|
||||
if (this.onUpload) {
|
||||
this.onUpload(this.template)
|
||||
}
|
||||
|
||||
this.save()
|
||||
},
|
||||
moveDocument (item, direction) {
|
||||
|
||||
Reference in new issue
Block a user