mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add dry run prop
This commit is contained in:
1 parent
72b7391245
commit
9047e3bed3
1 file changed
+7
-2
@@ -398,7 +398,7 @@
|
||||
v-if="isSubmitting"
|
||||
class="mr-1 animate-spin"
|
||||
/>
|
||||
<span v-else>
|
||||
<span>
|
||||
{{ buttonText }}
|
||||
</span><span
|
||||
v-if="isSubmitting"
|
||||
@@ -618,6 +618,11 @@ export default {
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
dryRun: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
attribution: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -1030,7 +1035,7 @@ export default {
|
||||
const formData = new FormData(this.$refs.form)
|
||||
const isLastStep = this.currentStep === this.stepFields.length - 1
|
||||
|
||||
if (isLastStep && !emptyRequiredField) {
|
||||
if (isLastStep && !emptyRequiredField && !this.dryRun) {
|
||||
formData.append('completed', 'true')
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user