Implemented Front End changes as per the card#1204
This commit is contained in:
parent
a3aaf1283e
commit
b1e160310d
3 changed files with 16 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ export async function getServiceabilityDetails(serviceZipCode, lineItems) {
|
||||||
storeActions.GET_SERVICEABILITY_DETAILS,
|
storeActions.GET_SERVICEABILITY_DETAILS,
|
||||||
{
|
{
|
||||||
serviceZipCode: serviceZipCode,
|
serviceZipCode: serviceZipCode,
|
||||||
lineItems: lineItems,
|
lineItems: lineItems
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ const mockGetServiceabilityDetails = (mockServiceZipCode) => {
|
||||||
isRecalibrationServiceableInshop: true,
|
isRecalibrationServiceableInshop: true,
|
||||||
isGlassServiceableMobile: true,
|
isGlassServiceableMobile: true,
|
||||||
isRecalibrationServiceableMobile: true,
|
isRecalibrationServiceableMobile: true,
|
||||||
|
IsServiceability:true,
|
||||||
};
|
};
|
||||||
|
|
||||||
return Promise.resolve(serviceabilityDetails);
|
return Promise.resolve(serviceabilityDetails);
|
||||||
|
|
|
||||||
|
|
@ -941,6 +941,20 @@ export const actions = {
|
||||||
// const lineItems = context.getters.order.lineItems;
|
// const lineItems = context.getters.order.lineItems;
|
||||||
// const lineItemsToSend = [...lineItems.supportingItems];
|
// const lineItemsToSend = [...lineItems.supportingItems];
|
||||||
// const encodedLineItems = encodeURIComponent(JSON.stringify(lineItemsToSend));
|
// const encodedLineItems = encodeURIComponent(JSON.stringify(lineItemsToSend));
|
||||||
|
|
||||||
|
//TODO: Restore this when CSR-1204 is 100% complete. Line# 958 to 961 should be removed Begin
|
||||||
|
// const vehicle = context.getters.vehicle;
|
||||||
|
// const carId = vehicle.carId;
|
||||||
|
// const damage = context.getters.damage;
|
||||||
|
// const glassArray = damage.glassToReplace;
|
||||||
|
// // create a new array to avoid mutating state
|
||||||
|
// const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
||||||
|
// return globalMethods.callHttpClient({
|
||||||
|
// method: endpoints.GetServiceabilityDetails.method,
|
||||||
|
// endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&lineItems=${encodedLineItems}&carId=${carId}&glassPieces=${glassArrayForPayload}`,
|
||||||
|
// });
|
||||||
|
//TODO: Restore this when CSR-1204 is 100% complete End
|
||||||
|
|
||||||
// return globalMethods.callHttpClient({
|
// return globalMethods.callHttpClient({
|
||||||
// method: endpoints.GetServiceabilityDetails.method,
|
// method: endpoints.GetServiceabilityDetails.method,
|
||||||
// endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&lineItems=${encodedLineItems}`,
|
// endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&lineItems=${encodedLineItems}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue