Merge branch 'develop' into feature/CSR-2130
This commit is contained in:
commit
febea7909a
3 changed files with 26 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ const GaActions = {
|
||||||
VIF: "vif",
|
VIF: "vif",
|
||||||
SUBMITTED: "Submitted",
|
SUBMITTED: "Submitted",
|
||||||
DISPLAYED: "Displayed",
|
DISPLAYED: "Displayed",
|
||||||
|
CASH_QUOTE_DISPLAYED: "Cash quote displayed",
|
||||||
};
|
};
|
||||||
|
|
||||||
const GaLabels = {
|
const GaLabels = {
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,7 @@ import { experimentSettings } from "@/constants/experiments";
|
||||||
import { partTypeStrings } from "@/constants/part-type-strings";
|
import { partTypeStrings } from "@/constants/part-type-strings";
|
||||||
import { containsLineItemWithPartType } from "@/helpers/service-package-helper";
|
import { containsLineItemWithPartType } from "@/helpers/service-package-helper";
|
||||||
import { nextTick } from "vue";
|
import { nextTick } from "vue";
|
||||||
|
import { packageNames } from "@/constants/package-names";
|
||||||
defineRule("option-required", required(errorMessages.OPTION_REQUIRED));
|
defineRule("option-required", required(errorMessages.OPTION_REQUIRED));
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -422,6 +423,30 @@ export default {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
attachCustomEvents() {
|
||||||
|
this.prependActionToMethod(this, this.forwardButtonAction, () => {
|
||||||
|
if (!this.isInsuranceSelected && this.lineItems.vaps?.length == 0) {
|
||||||
|
const tierOnePrice =
|
||||||
|
this.lineItems.promos?.length > 0
|
||||||
|
? this.$refs.servicePackage.getDiscountedPackagePriceString(
|
||||||
|
packageNames.TIER_ONE,
|
||||||
|
false
|
||||||
|
)
|
||||||
|
: this.$refs.servicePackage.getPackagePriceString(
|
||||||
|
packageNames.TIER_ONE
|
||||||
|
);
|
||||||
|
this.pushEventToGA(
|
||||||
|
this.$route.query[this.queryStrings.FMG_PAGE],
|
||||||
|
this.GaActions.CASH_QUOTE_DISPLAYED,
|
||||||
|
tierOnePrice,
|
||||||
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.attachCustomEvents();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
lineItemsCloneForWatcher: {
|
lineItemsCloneForWatcher: {
|
||||||
|
|
|
||||||
|
|
@ -360,8 +360,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
const isValid = await this.isFormValid();
|
|
||||||
console.log(isValid);
|
|
||||||
await this.dispatchStoreAction(
|
await this.dispatchStoreAction(
|
||||||
this.storeActions.SAVE_VEHICLE_DAMAGE,
|
this.storeActions.SAVE_VEHICLE_DAMAGE,
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue