CASH-278
pass additional param isHeavyTruckVehicle to provider endpoint to filter heavy truck shops
This commit is contained in:
parent
8fb66c6e20
commit
0becaee203
1 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ import {
|
||||||
import { externalParameterStatus } from "@/constants/external-parameters";
|
import { externalParameterStatus } from "@/constants/external-parameters";
|
||||||
import { experimentSettings } from "@/constants/experiments";
|
import { experimentSettings } from "@/constants/experiments";
|
||||||
import experimentMixin from "@/mixins/experiment-mixin.js";
|
import experimentMixin from "@/mixins/experiment-mixin.js";
|
||||||
|
import { vehicleSubTypes } from "@/constants/vehicle-categories.js";
|
||||||
|
|
||||||
// Export State
|
// Export State
|
||||||
const getDefaultState = () => {
|
const getDefaultState = () => {
|
||||||
|
|
@ -845,6 +846,9 @@ export const getters = {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
isHeavyTruckVehicle: (state) => {
|
||||||
|
return state.order.vehicle.vehicleSubType === vehicleSubTypes.HEAVY_TRUCK;
|
||||||
|
},
|
||||||
isMobileAppointment: (state) => {
|
isMobileAppointment: (state) => {
|
||||||
return state.order.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE;
|
return state.order.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE;
|
||||||
},
|
},
|
||||||
|
|
@ -1858,6 +1862,8 @@ export const actions = {
|
||||||
if (windshieldPartWithRecal) {
|
if (windshieldPartWithRecal) {
|
||||||
url += `/${windshieldPartWithRecal.partNumber}`;
|
url += `/${windshieldPartWithRecal.partNumber}`;
|
||||||
}
|
}
|
||||||
|
//heavy truck vehicle
|
||||||
|
url += `/${context.getters.isHeavyTruckVehicle}`;
|
||||||
|
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
method: endpoints.GetProviders.method,
|
method: endpoints.GetProviders.method,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue