Merge branch 'release/2025.09.04' into feature/bugfix/CASH-1417
This commit is contained in:
commit
d30382c129
1 changed files with 31 additions and 28 deletions
|
|
@ -486,6 +486,37 @@ export default {
|
||||||
},
|
},
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
await this.dispatchStoreAction(storeActions.RESET_SUBMITTED_STATE);
|
await this.dispatchStoreAction(storeActions.RESET_SUBMITTED_STATE);
|
||||||
|
let zipCodeData;
|
||||||
|
if (this.isBigTruck) {
|
||||||
|
zipCodeData = await this.getZipCodeData(this.serviceZipCode);
|
||||||
|
|
||||||
|
// check the location endpoint to verify this zip can service a heavy truck
|
||||||
|
var closestShops = await this.dispatchStoreActionWithLogging(
|
||||||
|
storeActions.GET_CLOSEST_APPLICABLE_SHOPS,
|
||||||
|
{ zip: this.serviceZipCode, carId: this.carId },
|
||||||
|
"vehicle"
|
||||||
|
);
|
||||||
|
if (!closestShops?.data?.providers || closestShops.data.providers.length === 0) {
|
||||||
|
this.displayNoServiceAlert = true;
|
||||||
|
if (store.getters.externalParameterState?.isExternalParameter) {
|
||||||
|
return baseMixin.methods.ResetExternalParamsAndHideModal();
|
||||||
|
}
|
||||||
|
return this.$refs.navbar.removeLoader();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (zipCodeData) {
|
||||||
|
await this.dispatchStoreAction(
|
||||||
|
storeActions.SAVE_SERVICE_ZIP_CODE_INFO,
|
||||||
|
{
|
||||||
|
zipCode: this.serviceZipCode,
|
||||||
|
state: zipCodeData.state,
|
||||||
|
zipCodeCtu: zipCodeData.zipCodeCtu,
|
||||||
|
},
|
||||||
|
false
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
this.dispatchStoreAction(
|
this.dispatchStoreAction(
|
||||||
storeActions.SAVE_VEHICLE,
|
storeActions.SAVE_VEHICLE,
|
||||||
{
|
{
|
||||||
|
|
@ -506,34 +537,6 @@ export default {
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.isBigTruck) {
|
|
||||||
const zipCodeData = await this.getZipCodeData(this.serviceZipCode);
|
|
||||||
await this.dispatchStoreAction(
|
|
||||||
storeActions.SAVE_SERVICE_ZIP_CODE_INFO,
|
|
||||||
{
|
|
||||||
zipCode: this.serviceZipCode,
|
|
||||||
state: zipCodeData.state,
|
|
||||||
zipCodeCtu: zipCodeData.zipCodeCtu,
|
|
||||||
},
|
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
// check the location endpoint to verify this zip can service a heavy truck
|
|
||||||
var closestShops = await this.dispatchStoreActionWithLogging(
|
|
||||||
storeActions.GET_CLOSEST_APPLICABLE_SHOPS,
|
|
||||||
{ zip: this.serviceZipCode, carId: this.carId },
|
|
||||||
"vehicle"
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!closestShops || closestShops.data?.providers?.length === 0) {
|
|
||||||
this.displayNoServiceAlert = true;
|
|
||||||
if (store.getters.externalParameterState?.isExternalParameter) {
|
|
||||||
return baseMixin.methods.ResetExternalParamsAndHideModal();
|
|
||||||
}
|
|
||||||
return this.$refs.navbar.removeLoader();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.$router.navigateWithSaving(
|
this.$router.navigateWithSaving(
|
||||||
this.navigationScenarios.CLICKED_FORWARD,
|
this.navigationScenarios.CLICKED_FORWARD,
|
||||||
this.pageName
|
this.pageName
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue