diff --git a/app/javascript/submission_form/form.vue b/app/javascript/submission_form/form.vue
index 4b7e6a20..946a3aca 100644
--- a/app/javascript/submission_form/form.vue
+++ b/app/javascript/submission_form/form.vue
@@ -70,7 +70,7 @@
:class="{ 'md:px-4': isBreakpointMd }"
>
{
console.error(error)
@@ -1202,6 +1194,21 @@ export default {
}).finally(() => {
this.isSubmitting = false
})
+ },
+ async performComplete (resp) {
+ this.isCompleted = true
+
+ if (resp) {
+ const respData = await resp.text()
+
+ if (respData) {
+ this.onComplete(JSON.parse(respData))
+ }
+ }
+
+ if (this.completedRedirectUrl) {
+ window.location.href = this.completedRedirectUrl
+ }
}
}
}