copilot fixes
This commit is contained in:
parent
8c0c82eeaf
commit
adbaa7d0ca
2 changed files with 6 additions and 2 deletions
|
|
@ -238,7 +238,11 @@ export default {
|
||||||
}
|
}
|
||||||
if (!vinLookup.data?.canSafeliteService) {
|
if (!vinLookup.data?.canSafeliteService) {
|
||||||
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(vinLookup.data.carId));
|
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(vinLookup.data.carId));
|
||||||
return this.navigateForward();
|
this.$router.navigate(
|
||||||
|
this.navigationScenarios.BAILOUT,
|
||||||
|
this.$route
|
||||||
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this.isSelectedGlassAvailableForVehicle = await isGlassAvailableForCarId(vinLookup.data.carId);
|
this.isSelectedGlassAvailableForVehicle = await isGlassAvailableForCarId(vinLookup.data.carId);
|
||||||
await useMainStore().saveVin(
|
await useMainStore().saveVin(
|
||||||
|
|
|
||||||
|
|
@ -170,13 +170,13 @@ export default {
|
||||||
// NOTE: If form is not valid, this method is not called when 'Continue' button is clicked
|
// NOTE: If form is not valid, this method is not called when 'Continue' button is clicked
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
this.resetActiveAlert();
|
this.resetActiveAlert();
|
||||||
|
this.mainStore.resetBailout();
|
||||||
// Temp solution to reset the 'disabled' style on the Continue button
|
// Temp solution to reset the 'disabled' style on the Continue button
|
||||||
this.$refs.siteFooter.enableForwardAction();
|
this.$refs.siteFooter.enableForwardAction();
|
||||||
showIssLoadingModal(true);
|
showIssLoadingModal(true);
|
||||||
|
|
||||||
if (this.needToLookupVehicle) {
|
if (this.needToLookupVehicle) {
|
||||||
try {
|
try {
|
||||||
this.mainStore.resetBailout();
|
|
||||||
const vehicleLookupResponse = await this.lookupVehicleByVin(this.vin);
|
const vehicleLookupResponse = await this.lookupVehicleByVin(this.vin);
|
||||||
|
|
||||||
if (!vehicleLookupResponse.data.canSafeliteService) {
|
if (!vehicleLookupResponse.data.canSafeliteService) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue