|
|
|
@ -530,6 +530,7 @@
|
|
|
|
v-else-if="isInvite"
|
|
|
|
v-else-if="isInvite"
|
|
|
|
:submitters="inviteSubmitters"
|
|
|
|
:submitters="inviteSubmitters"
|
|
|
|
:optional-submitters="optionalInviteSubmitters"
|
|
|
|
:optional-submitters="optionalInviteSubmitters"
|
|
|
|
|
|
|
|
:fetch-options="fetchOptions"
|
|
|
|
:submitter-slug="submitterSlug"
|
|
|
|
:submitter-slug="submitterSlug"
|
|
|
|
:authenticity-token="authenticityToken"
|
|
|
|
:authenticity-token="authenticityToken"
|
|
|
|
:url="baseUrl + submitPath + '/invite'"
|
|
|
|
:url="baseUrl + submitPath + '/invite'"
|
|
|
|
@ -543,6 +544,7 @@
|
|
|
|
:has-signature-fields="stepFields.some((fields) => fields.some((f) => ['signature', 'initials'].includes(f.type)))"
|
|
|
|
:has-signature-fields="stepFields.some((fields) => fields.some((f) => ['signature', 'initials'].includes(f.type)))"
|
|
|
|
:has-multiple-documents="hasMultipleDocuments"
|
|
|
|
:has-multiple-documents="hasMultipleDocuments"
|
|
|
|
:completed-button="completedRedirectUrl ? {} : completedButton"
|
|
|
|
:completed-button="completedRedirectUrl ? {} : completedButton"
|
|
|
|
|
|
|
|
:fetch-options="fetchOptions"
|
|
|
|
:completed-message="completedRedirectUrl ? {} : completedMessage"
|
|
|
|
:completed-message="completedRedirectUrl ? {} : completedMessage"
|
|
|
|
:with-send-copy-button="withSendCopyButton && !completedRedirectUrl"
|
|
|
|
:with-send-copy-button="withSendCopyButton && !completedRedirectUrl"
|
|
|
|
:with-download-button="withDownloadButton && !completedRedirectUrl && !dryRun"
|
|
|
|
:with-download-button="withDownloadButton && !completedRedirectUrl && !dryRun"
|
|
|
|
@ -678,6 +680,11 @@ export default {
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
default: () => []
|
|
|
|
default: () => []
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
fetchOptions: {
|
|
|
|
|
|
|
|
type: Object,
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
default: () => ({})
|
|
|
|
|
|
|
|
},
|
|
|
|
optionalInviteSubmitters: {
|
|
|
|
optionalInviteSubmitters: {
|
|
|
|
type: Array,
|
|
|
|
type: Array,
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
@ -1467,7 +1474,8 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return fetch(this.baseUrl + this.submitPath, {
|
|
|
|
return fetch(this.baseUrl + this.submitPath, {
|
|
|
|
method: 'POST',
|
|
|
|
method: 'POST',
|
|
|
|
body: formData || new FormData(this.$refs.form)
|
|
|
|
body: formData || new FormData(this.$refs.form),
|
|
|
|
|
|
|
|
...this.fetchOptions
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
if (response.status === 200) {
|
|
|
|
if (response.status === 200) {
|
|
|
|
currentFieldUuids.forEach((fieldUuid) => {
|
|
|
|
currentFieldUuids.forEach((fieldUuid) => {
|
|
|
|
|