CASH-2380: add in new constant arrays to also check to skip vin capture
This commit is contained in:
parent
1a05482746
commit
885e8b2f39
1 changed files with 9 additions and 1 deletions
|
|
@ -10,6 +10,8 @@ import { applicationConfig } from "@/constants/application-config";
|
||||||
import { experimentTriggers } from "@/constants/experiments";
|
import { experimentTriggers } from "@/constants/experiments";
|
||||||
import { damageLocationsSelected } from "@/constants/damage-locations-selected";
|
import { damageLocationsSelected } from "@/constants/damage-locations-selected";
|
||||||
import { singleWindshieldCarIds } from "@/constants/single-windshield-carids";
|
import { singleWindshieldCarIds } from "@/constants/single-windshield-carids";
|
||||||
|
import { skipVinCaptureCarIds } from "@/constants/skip-vin-capture-car-ids.js";
|
||||||
|
import { skipPartsQuestionsCarIds } from "@/constants/skip-parts-questions-car-ids.js";
|
||||||
import { routeData } from "@/router/constants/routes";
|
import { routeData } from "@/router/constants/routes";
|
||||||
import {
|
import {
|
||||||
deleteFunnelCookie,
|
deleteFunnelCookie,
|
||||||
|
|
@ -3516,10 +3518,16 @@ export const actions = {
|
||||||
},
|
},
|
||||||
|
|
||||||
isVinOptionalVehicle(context) {
|
isVinOptionalVehicle(context) {
|
||||||
//Optional for carIds with only a single windshield
|
//Optional for certain carIds
|
||||||
if (singleWindshieldCarIds.find((item) => item === context.state.order.vehicle.carId)) {
|
if (singleWindshieldCarIds.find((item) => item === context.state.order.vehicle.carId)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (skipVinCaptureCarIds.find((item) => item === context.state.order.vehicle.carId)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (skipPartsQuestionsCarIds.find((item) => item === context.state.order.vehicle.carId)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
//Optional for specific YMMSs
|
//Optional for specific YMMSs
|
||||||
switch (context.state.order.vehicle.make.toLowerCase()) {
|
switch (context.state.order.vehicle.make.toLowerCase()) {
|
||||||
case "porsche":
|
case "porsche":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue