commit
b6db10df36
4 changed files with 18 additions and 7 deletions
|
|
@ -33,6 +33,7 @@ const experimentSettings = {
|
||||||
SHOW_PM_MOBILE_DAYS: "Show_PMmobileDays",
|
SHOW_PM_MOBILE_DAYS: "Show_PMmobileDays",
|
||||||
SHOW_NO_PM_MOBILE_DAYS: "Show_NoPMmobileDays",
|
SHOW_NO_PM_MOBILE_DAYS: "Show_NoPMmobileDays",
|
||||||
SHOW_NO_MOBILE_AVAILABLE_DAYS: "Show_NoMobileAvailableDays",
|
SHOW_NO_MOBILE_AVAILABLE_DAYS: "Show_NoMobileAvailableDays",
|
||||||
|
OFFER_OEM: "OfferOem",
|
||||||
};
|
};
|
||||||
|
|
||||||
const experimentTriggers = {
|
const experimentTriggers = {
|
||||||
|
|
|
||||||
|
|
@ -220,11 +220,17 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
// call API oem-after-market-parts method
|
// call API oem-after-market-parts method
|
||||||
|
const offerOem = experimentMixin.methods.hasSettingEqualTo(
|
||||||
|
experimentSettings.OFFER_OEM,
|
||||||
|
"true"
|
||||||
|
);
|
||||||
|
if (offerOem) {
|
||||||
const oemAfterMarketParts = baseMixin.methods.dispatchStoreActionWithLogging(
|
const oemAfterMarketParts = baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
storeActions.GET_OEM_AFTERMARKET_PARTS,
|
storeActions.GET_OEM_AFTERMARKET_PARTS,
|
||||||
null,
|
null,
|
||||||
"quote"
|
"quote"
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const shouldExposeSkipQuote = store.getters.isRecalibrationOnOrder;
|
const shouldExposeSkipQuote = store.getters.isRecalibrationOnOrder;
|
||||||
const skipQuoteExperiment = store.getters.applicationUser.experiments.find(
|
const skipQuoteExperiment = store.getters.applicationUser.experiments.find(
|
||||||
|
|
|
||||||
|
|
@ -1655,6 +1655,8 @@ export default {
|
||||||
this.updateSelectedProvider();
|
this.updateSelectedProvider();
|
||||||
},
|
},
|
||||||
updateSelectedProvider(newShopProvider) {
|
updateSelectedProvider(newShopProvider) {
|
||||||
|
if (!this.appointmentTypeStrings) return;
|
||||||
|
|
||||||
if (newShopProvider) {
|
if (newShopProvider) {
|
||||||
this.selectedProvider = newShopProvider;
|
this.selectedProvider = newShopProvider;
|
||||||
} else if (this.appointmentType === this.appointmentTypeStrings.MOBILE) {
|
} else if (this.appointmentType === this.appointmentTypeStrings.MOBILE) {
|
||||||
|
|
|
||||||
|
|
@ -1877,9 +1877,11 @@ export const actions = {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Flatten location and name properties
|
// Flatten location and name properties
|
||||||
|
if (response?.data?.glassPieceParts) {
|
||||||
response.data.glassPieceParts = convertGlassPieceNamingFromApi(
|
response.data.glassPieceParts = convertGlassPieceNamingFromApi(
|
||||||
response.data.glassPieceParts
|
response.data.glassPieceParts
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue