Merge pull request #2984 from Safelite/nation/CASH-2041

CASH-2041
This commit is contained in:
CarlNation 2025-12-19 09:58:18 -05:00 committed by GitHub
commit b6db10df36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 7 deletions

View file

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

View file

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

View file

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

View file

@ -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;
}, },