From 023a521ec11c834f386151032916ad7c3389fed5 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Mon, 20 Feb 2023 13:14:51 -0500 Subject: [PATCH] Now retrieving the actual mobile fee but we're mocking the part call --- src/constants/endpoints.js | 2 +- .../mobile-location-modal-questions.vue | 9 ++++----- src/store/index.js | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 19019477b..6b1e69609 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -70,7 +70,7 @@ const endpoints = { url: "/parts/api/v1/parts/rain-defense", method: "GET", }, - GetMobileFeePart: { + GetMobileFeePart: { url: "/parts/api/v1/parts/mobile-fee", method: "GET", }, diff --git a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue index 9aeda710c..d1aa4dd4b 100644 --- a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue +++ b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue @@ -63,7 +63,7 @@ export default { return { internalModel: this.copyModel(this.modelValue), displayInvalidZipAlert: false, - mobileFee: "" + mobileFee: "", }; }, props: { @@ -147,24 +147,23 @@ export default { isZipServiceableInShop: modelToCopy.isZipServiceableInShop, }; }, - + async getMobileFee() { // Get the Mobile Fee Part const mobileFeePart = await baseMixin.methods.dispatchStoreAction( storeActions.GET_MOBILE_FEE_PART, - null, + null, false ); // Get the Mobile Fee Part Price const pricingResults = await baseMixin.methods.dispatchStoreAction( storeActions.PRICE_ORDER_ITEMS, - [ mobileFeePart.data ], + [mobileFeePart.data], false ); return await baseMixin.methods.getTotalLineItemPrice(pricingResults[0]); - }, openModal() { diff --git a/src/store/index.js b/src/store/index.js index 10cf7d797..5f4d7c1f5 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -912,7 +912,7 @@ export const actions = { method: endpoints.GetMobileFeePart.method, endpoint: "https://run.mocky.io/v3/795de4cb-d014-48b4-9338-dab33261adce", //TODO: Remove Mocky Endpoint }); - }, + }, getSupportingItems(context) { const glassPartsArray = context.getters.lineItems.glassParts ?? [];