Added navigateAfterSaveToHeritageFunnel method is place of navigateToHeritageFunnel
This commit is contained in:
parent
a4f7b862eb
commit
023cb9e421
1 changed files with 2 additions and 2 deletions
|
|
@ -250,7 +250,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 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 || isGlassAvailableForCarId(carFound.carId)) {
|
if (carEntered.carId == carFound.carId || isGlassAvailableForCarId(carFound.carId)) {
|
||||||
navigateToHeritageFunnel();
|
navigateAfterSaveToHeritageFunnel(this.$route);
|
||||||
} else {
|
} else {
|
||||||
const partsData = await baseMixin.methods.dispatchNonBlockingStoreAction(
|
const partsData = await baseMixin.methods.dispatchNonBlockingStoreAction(
|
||||||
this.storeActions.GET_PARTS_OR_QUESTIONS,
|
this.storeActions.GET_PARTS_OR_QUESTIONS,
|
||||||
|
|
@ -269,7 +269,7 @@ export default {
|
||||||
// if multiple cars were found
|
// if multiple cars were found
|
||||||
if (carsFound.find(car => car.carId === carEntered.carId)) {
|
if (carsFound.find(car => car.carId === carEntered.carId)) {
|
||||||
// and one of them matches the car id entered
|
// and one of them matches the car id entered
|
||||||
navigateToHeritageFunnel();
|
navigateAfterSaveToHeritageFunnel(this.$route);
|
||||||
} else {
|
} else {
|
||||||
// and there is no match, navigate 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