diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index 8970dd091..b6140be2f 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -265,14 +265,20 @@ export default { }, navigateForward(carEntered, carsFound) { if (carsFound.length == 1) { + // if a different vehicle is found than the one entered and the selected glass + // is not available for that vehicle if (this.isCarIdDifferent && !this.isSelectedGlassAvailableForVehicle) { this.$router.navigateAfterSave( + // then navigate back to "vehicle-damage", and display vehicle changed alert + // on that page this.navigationScenarios.CONTINUING_WITH_DIFFERENT_GLASS, this.$route, {}, { displayVehicleChangeAlert: true }, {} ); } else { + // otherwise + this.$refs.loadingModal.showModal(); navigateAfterSaveToHeritageFunnel(this.$route); } } else if (carsFound.length > 1) {