This commit is contained in:
Chloe Herd 2023-09-18 16:28:01 -04:00
parent e4349b3a3d
commit 2bec4fa045
3 changed files with 18 additions and 7 deletions

View file

@ -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 = [

View file

@ -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);

View file

@ -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