diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index 2ebcc1e8..6f4d005b 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -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) + } }) } }