diff --git a/src/layouts/estimate/estimate.vue b/src/layouts/estimate/estimate.vue index dff601165..105da110d 100644 --- a/src/layouts/estimate/estimate.vue +++ b/src/layouts/estimate/estimate.vue @@ -157,9 +157,10 @@ export default { var vinByAddressPromise; if (zip) { - vinByAddressPromise = baseMixin.methods.dispatchStoreAction( + vinByAddressPromise = baseMixin.methods.dispatchStoreActionWithLogging( storeActions.IS_VIN_BY_ADDRESS_PERMISSIBLE, - zip, + { zip: zip }, + "estimate", false ); } @@ -256,8 +257,10 @@ export default { } else if (this.$store.getters.order.referralNumber?.length === 6) { await this.navigateForwardWithSingleCarMatch(); } else if (this.isRepair) { - const supportingItemsPromise = await this.dispatchStoreAction( - storeActions.GET_SUPPORTING_ITEMS + const supportingItemsPromise = await this.dispatchStoreActionWithLogging( + storeActions.GET_SUPPORTING_ITEMS, + null, + "estimate" ); const promiseResultMap = [ diff --git a/src/mixins/vin-pages-mixin.js b/src/mixins/vin-pages-mixin.js index cad998d38..dcf96a59c 100644 --- a/src/mixins/vin-pages-mixin.js +++ b/src/mixins/vin-pages-mixin.js @@ -11,7 +11,11 @@ export default { await saveSession({}); } - const result = await this.dispatchStoreAction(storeActions.GET_PARTS_OR_QUESTIONS); + const pageName = this.$options?.name; + + const result = await this.dispatchStoreAction(storeActions.GET_PARTS_OR_QUESTIONS, { + pageNameToLog: pageName, + }); const partsOrQuestions = result.data.partsOrQuestions; vehicleQuestionsMixin.methods.navigateForward(partsOrQuestions, this); diff --git a/src/store/index.js b/src/store/index.js index 26a28b39a..87c6b95cd 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -724,11 +724,13 @@ export const actions = { }); }, - isVinByAddressPermissible(context, zip) { + isVinByAddressPermissible(context, { payload: { zip }, pageNameToLog }) { return globalMethods.callHttpClient({ method: endpoints.IsVinByAddressPermissible.method, endpoint: `${endpoints.IsVinByAddressPermissible.url}?zipcode=${zip}`, payload: {}, + logApiCall: true, + pageNameToLog: pageNameToLog, }); }, @@ -1097,7 +1099,7 @@ export const actions = { }, // PartsOrQuestions API Actions - async getPartsOrQuestions(context) { + async getPartsOrQuestions(context, { pageNameToLog }) { const vehicle = context.getters.vehicle; const damage = context.getters.damage; const order = context.state.order; @@ -1119,6 +1121,8 @@ export const actions = { zip: zipCode, vin: vin, }, + logApiCall: true, + pageNameToLog: pageNameToLog, }); // Flatten location and name properties