preparing to merge from develop
This commit is contained in:
parent
2c9264f2e6
commit
c5179e928d
1 changed files with 4 additions and 8 deletions
|
|
@ -225,8 +225,7 @@ export default {
|
|||
|
||||
// if the car entered is the same as the car found OR the glass options for the found car match the users damage selections
|
||||
if (carEntered.carId == carFound.carId || !compareGlassOptions(glassOptions.data, store.getters.damage.glassToReplace)) {
|
||||
console.log("navigating to heritage funnel");
|
||||
//navigateToHeritageFunnel();
|
||||
navigateToHeritageFunnel();
|
||||
} else {
|
||||
const partsData = await baseMixin.methods.dispatchNonBlockingStoreAction(
|
||||
this.storeActions.GET_PARTS_OR_QUESTIONS,
|
||||
|
|
@ -238,20 +237,17 @@ export default {
|
|||
}, false
|
||||
);
|
||||
|
||||
console.log("navigating to vehicle-damage page");
|
||||
// if not then navigate to the "vehicle-damage" page
|
||||
//this.$router.navigateAfterSave(this.navigationScenarios.CLICKED_FORWARD, this.$route, {}, { displayVehicleChangeAlert: true }, partsData.data);
|
||||
this.$router.navigateAfterSave(this.navigationScenarios.CLICKED_FORWARD, this.$route, {}, { displayVehicleChangeAlert: true }, partsData.data);
|
||||
}
|
||||
} else if (carsFound.length > 1) {
|
||||
// if multiple cars were found
|
||||
if (carsFound.find(car => car.carId === carEntered.carId)) {
|
||||
console.log("navigating to heritage funnel");
|
||||
// and one of them matches the car id entered
|
||||
//navigateToHeritageFunnel();
|
||||
navigateToHeritageFunnel();
|
||||
} else {
|
||||
console.log("navigating to address-vehicle page");
|
||||
// and there is no match, navigate to "address-vehicle" page
|
||||
//this.$router.navigateAfterSave(this.navigationScenarios.CONTINUING_WITH_MULTIPLE_VEHICLES, this.$route, {}, {}, carsFound);
|
||||
this.$router.navigateAfterSave(this.navigationScenarios.CONTINUING_WITH_MULTIPLE_VEHICLES, this.$route, {}, {}, carsFound);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue