CASH-3044: YMM bailout feature toggle
This commit is contained in:
parent
84d1f7fe65
commit
47a6baa407
2 changed files with 11 additions and 1 deletions
|
|
@ -58,6 +58,9 @@ const experimentSettings = {
|
||||||
TIER_ONE: "TierOne",
|
TIER_ONE: "TierOne",
|
||||||
TIER_TWO: "TierTwo",
|
TIER_TWO: "TierTwo",
|
||||||
TIER_THREE: "TierThree",
|
TIER_THREE: "TierThree",
|
||||||
|
|
||||||
|
// YMM
|
||||||
|
BAILOUT_VIN_REQUIRED_VEHICLES: "BailoutVINRequiredVehicles",
|
||||||
};
|
};
|
||||||
|
|
||||||
const experimentTriggers = {
|
const experimentTriggers = {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import { saveSession } from "@/helpers/heritage-integration/order-helper.js";
|
||||||
import { experimentSettings } from "@/constants/experiments";
|
import { experimentSettings } from "@/constants/experiments";
|
||||||
import { vinLookupMethodSelections } from "@/constants/vin-lookup-method-selections.js";
|
import { vinLookupMethodSelections } from "@/constants/vin-lookup-method-selections.js";
|
||||||
import { bailoutCodes } from "@/constants/bailout-codes";
|
import { bailoutCodes } from "@/constants/bailout-codes";
|
||||||
|
import experimentMixin from "@/mixins/experiment-mixin.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -37,7 +38,7 @@ export default {
|
||||||
pageNameToLog: pageName,
|
pageNameToLog: pageName,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result.PartNotFound) {
|
if (result.PartNotFound || this.bailoutVinRequiredVehicles()) {
|
||||||
return bailoutMixin.methods.navigateToBailoutPage(
|
return bailoutMixin.methods.navigateToBailoutPage(
|
||||||
this,
|
this,
|
||||||
bailoutCodes.PART_NOT_FOUND
|
bailoutCodes.PART_NOT_FOUND
|
||||||
|
|
@ -75,5 +76,11 @@ export default {
|
||||||
const phoneRegex = /^\(?(\d{3})\)?[-. ]?(\d{3})[-. ]?(\d{4})$/;
|
const phoneRegex = /^\(?(\d{3})\)?[-. ]?(\d{3})[-. ]?(\d{4})$/;
|
||||||
return phoneRegex.test(input);
|
return phoneRegex.test(input);
|
||||||
},
|
},
|
||||||
|
bailoutVinRequiredVehicles() {
|
||||||
|
return experimentMixin.methods.hasSettingEqualTo(
|
||||||
|
experimentSettings.BAILOUT_VIN_REQUIRED_VEHICLES,
|
||||||
|
"true"
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue