Merge pull request #912 from Safelite/feature/Revert_SSR-1942
Reverting change from SSR-1942 to due blocking issues.
This commit is contained in:
commit
d9777061b8
4 changed files with 16 additions and 11 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
disableAutoFill
|
disableAutoFill
|
||||||
validationRules="street-address-required"
|
validationRules="street-address-required"
|
||||||
@keydown.enter.prevent
|
@keydown.enter.prevent
|
||||||
@focusout="fillInAddressUsingFirstItem()" />
|
@focusout="fillInAddress()" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<transition
|
<transition
|
||||||
|
|
|
||||||
|
|
@ -193,9 +193,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisitesValid() {
|
|
||||||
return !!this.mainStore.pageData(issPageValues.BAILOUT_PAGE);
|
|
||||||
},
|
|
||||||
backButtonAction() {
|
backButtonAction() {
|
||||||
// route to move backwards
|
// route to move backwards
|
||||||
this.mainStore.resetBailout();
|
this.mainStore.resetBailout();
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
id="address-questions-wrapper"
|
id="address-questions-wrapper"
|
||||||
ref="addressQuestions"
|
ref="addressQuestions"
|
||||||
v-model="customerQuestions.addressQuestions"
|
v-model="customerQuestions.addressQuestions"
|
||||||
:includeStreetAddress2="true" />
|
includeStreetAddress2="true" />
|
||||||
<textboxQuestion
|
<textboxQuestion
|
||||||
ref="policyHolderFirstName"
|
ref="policyHolderFirstName"
|
||||||
v-model="customerQuestions.firstName"
|
v-model="customerQuestions.firstName"
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,7 @@ export default {
|
||||||
vin,
|
vin,
|
||||||
forwardButtonCarStyle: '',
|
forwardButtonCarStyle: '',
|
||||||
vinPopulatedOnPageLoad: vin?.length > 0 && this.hasValidCarId(),
|
vinPopulatedOnPageLoad: vin?.length > 0 && this.hasValidCarId(),
|
||||||
|
hasBailedOut: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -230,12 +231,13 @@ export default {
|
||||||
|
|
||||||
this.needToLookupVehicle = false;
|
this.needToLookupVehicle = false;
|
||||||
|
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
let isSelectedGlassAvailableForVehicle = true;
|
let isSelectedGlassAvailableForVehicle = true;
|
||||||
if (this.isCarIdDifferentFromTheStore) {
|
if (this.isCarIdDifferentFromTheStore) {
|
||||||
isSelectedGlassAvailableForVehicle = await isGlassAvailableForCarId(this.vehicleFromLookup.carId);
|
isSelectedGlassAvailableForVehicle =
|
||||||
|
await isGlassAvailableForCarId(this.vehicleFromLookup.carId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// navigate back to vehicle-damage
|
// navigate back to vehicle-damage
|
||||||
|
|
@ -253,7 +255,7 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
// navigate() doesn't stop the processing flow
|
// navigate() doesn't stop the processing flow
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// save vehicle to store if it hasn't already been saved
|
// save vehicle to store if it hasn't already been saved
|
||||||
|
|
@ -266,22 +268,28 @@ export default {
|
||||||
this.navigationScenarios.CORRECTED_VIN_FROM_POLICY_VEHICLE,
|
this.navigationScenarios.CORRECTED_VIN_FROM_POLICY_VEHICLE,
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const partsOrQuestionsResponse = await this.getPartsOrQuestions();
|
const partsOrQuestionsResponse = await this.getPartsOrQuestions();
|
||||||
if (partsOrQuestionsResponse.error) {
|
if (partsOrQuestionsResponse.error) {
|
||||||
this.mainStore.setBailout(bailoutMessage.PartsServiceError(partsOrQuestionsResponse.error.data));
|
this.mainStore.setBailout(bailoutMessage.PartsServiceError(partsOrQuestionsResponse.error.data));
|
||||||
window.console.error('Error on retrieving PartsOrQuestions');
|
window.console.error('Error on retrieving PartsOrQuestions');
|
||||||
|
this.$refs.siteFooter.removeLoader();
|
||||||
|
this.hasBailedOut = true;
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.CLICKED_FORWARD_WITH_BAILOUT,
|
this.navigationScenarios.CLICKED_FORWARD_WITH_BAILOUT,
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Comes from vehicleQuestionsMixin.navigateForward()
|
// Comes from vehicleQuestionsMixin.navigateForward()
|
||||||
await this.navigateForward(partsOrQuestionsResponse.data.partsOrQuestions, this);
|
if (!this.hasBailedOut) {
|
||||||
|
await this.navigateForward(
|
||||||
|
partsOrQuestionsResponse.data.partsOrQuestions,
|
||||||
|
this
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async lookupVehicleByVin(vin) {
|
async lookupVehicleByVin(vin) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue