project-booster-vue 9.55.0 → 9.55.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -228,6 +228,7 @@
|
|
|
228
228
|
:key="action.label"
|
|
229
229
|
@click.prevent="callAction(action)"
|
|
230
230
|
:data-cerberus="sanitizeCerberusAttribut('PB-TREZOR', 'SENDFORM')"
|
|
231
|
+
:disabled="isSubmitDisabled"
|
|
231
232
|
/>
|
|
232
233
|
</m-flex>
|
|
233
234
|
</div>
|
|
@@ -412,10 +413,14 @@ export default defineComponent({
|
|
|
412
413
|
optinOffers: boolean(),
|
|
413
414
|
});
|
|
414
415
|
|
|
416
|
+
let isSubmitDisabled = false;
|
|
417
|
+
|
|
415
418
|
const validateAllFields = async (action: any) => {
|
|
416
419
|
await validationSchema
|
|
417
420
|
.validate(formData.value.values, { abortEarly: false })
|
|
418
421
|
.then(async () => {
|
|
422
|
+
isSubmitDisabled = true;
|
|
423
|
+
|
|
419
424
|
const leadSaveStatus = await store.dispatch('trezor/sendFormData', {
|
|
420
425
|
payload: {
|
|
421
426
|
customer: {
|
|
@@ -451,6 +456,8 @@ export default defineComponent({
|
|
|
451
456
|
}
|
|
452
457
|
})
|
|
453
458
|
.catch((err) => {
|
|
459
|
+
isSubmitDisabled = false;
|
|
460
|
+
|
|
454
461
|
formData.value.errors = {};
|
|
455
462
|
|
|
456
463
|
err.inner.forEach((e: any) => {
|
|
@@ -479,6 +486,7 @@ export default defineComponent({
|
|
|
479
486
|
sanitizeCerberusAttribut,
|
|
480
487
|
showModal,
|
|
481
488
|
partners,
|
|
489
|
+
isSubmitDisabled,
|
|
482
490
|
};
|
|
483
491
|
},
|
|
484
492
|
});
|