Added loading modal when the entered vehicle is found or the glass is available for the vehicle found
This commit is contained in:
parent
0d0c4a8b27
commit
cd930af6b8
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue