From 7321e9efcf12418bf399070bf0ed6ce29f6a33f6 Mon Sep 17 00:00:00 2001 From: Katie Date: Tue, 5 Jul 2022 11:51:30 -0400 Subject: [PATCH] CSR-643 Update validation on input change --- src/layouts/vehicle-damage/vehicle-damage.vue | 2 +- .../list-button-horizontal/list-button-horizontal.vue | 5 +++-- src/ux-components/list-card/list-card.vue | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index d36247640..8ce4f0574 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -397,7 +397,7 @@ export default { return this.$route.params[this.routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]; }, shouldHideBackButton() { - return this.$store.getters.payment.insuranceCoverage.isVerified || getFunnelCookie().HasDelayedClaimRegistration; + return this.$store.getters.payment.insuranceCoverage.isVerified || getFunnelCookie()?.HasDelayedClaimRegistration; } }, diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.vue b/src/ux-components/list-button-horizontal/list-button-horizontal.vue index e60d0d22c..49978aa1e 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue @@ -119,14 +119,13 @@ export default { if(!this.selectingInitiatesLoad) { this.handleCheckChange(); } - this.handleChange(this.value); }, triggerButton() { if(this.selectingInitiatesLoad) { this.displayLoader(); this.handleCheckChange(); } - this.handleChange(this.value); + this.pushEventToGA(this.$route.query[queryStrings.FMG_PAGE], this.GaActions.CLICKED, this.value.toString(), true); }, handleCheckChange() { @@ -135,6 +134,8 @@ export default { value: this.value.toString(), buttonId: this.buttonID && this.buttonID.toString(), }; + + this.handleChange(this.value); this.$emit("isCheckedChanged", emitEvent); this.$emit("update:modelValue", emitEvent); } diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue index 84762fc91..97bb9a1d6 100644 --- a/src/ux-components/list-card/list-card.vue +++ b/src/ux-components/list-card/list-card.vue @@ -146,14 +146,13 @@ export default { if(!this.selectingInitiatesLoad) { this.handleCheckChange(); } - this.handleChange(this.value); }, triggerButton() { if(this.selectingInitiatesLoad) { this.displayLoader(); this.handleCheckChange(); } - this.handleChange(this.value); + this.pushEventToGA(this.$route.query[queryStrings.FMG_PAGE], this.GaActions.CLICKED, this.value.toString(), true); }, handleCheckChange() { @@ -162,6 +161,8 @@ export default { value: this.value.toString(), buttonId: this.buttonID && this.buttonID.toString(), }; + + this.handleChange(this.value); this.$emit("isCheckedChanged", emitEvent); this.$emit("update:modelValue", emitEvent); },