INSR-7774: Skip vehicle-lookup if not windshield replacement
This commit is contained in:
parent
78ae497f33
commit
e2f624b4b4
1 changed files with 8 additions and 1 deletions
|
|
@ -216,6 +216,13 @@ export default {
|
|||
=== damageLocationsSelected.REPAIR
|
||||
);
|
||||
},
|
||||
isWindshieldReplace() {
|
||||
return (
|
||||
this.isWindshieldDamageLocation
|
||||
&& this.selectedWindshieldOptions.selectedWindshieldDamageType
|
||||
=== damageLocationsSelected.REPLACE
|
||||
);
|
||||
},
|
||||
isDriverSideReplace() {
|
||||
if (!this.isSideDoorDamageLocation) return false;
|
||||
|
||||
|
|
@ -418,7 +425,7 @@ export default {
|
|||
this.navigationScenarios.CLICKED_FORWARD_WITH_REPAIR,
|
||||
this.$route
|
||||
);
|
||||
} else if (this.mainStore.order.vehicle.vin) {
|
||||
} else if (this.mainStore.order.vehicle.vin || !this.isWindshieldReplace) {
|
||||
// If vin already exists, navigate directly to vin-lookup
|
||||
|
||||
const partsOrQuestionsResponse = await this.getPartsOrQuestions();
|
||||
|
|
|
|||
Loading…
Reference in a new issue