Merge branch 'release/2025.07.31' into CASH-1163-afterpay-update

This commit is contained in:
bmauger 2025-07-25 14:31:49 -04:00 committed by GitHub
commit d7da7a6205
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 5 deletions

View file

@ -110,6 +110,7 @@
:selectedProviderNumberFromParent="selectedProvider?.providerNumber" :selectedProviderNumberFromParent="selectedProvider?.providerNumber"
:shopProviderDataFromParent="shopProviderData" :shopProviderDataFromParent="shopProviderData"
@shop-selected="onShopSelected" @shop-selected="onShopSelected"
@updated-serviceability="setServiceabilityDetails"
:zipCodeFromParent="zipCode" :zipCodeFromParent="zipCode"
cmsWidgetName="YourSafeliteShopWidget" /> cmsWidgetName="YourSafeliteShopWidget" />
@ -1307,6 +1308,9 @@ export default {
); );
} }
}, },
showLoadingModal() {
this.$refs.loadingModal.showModal();
},
async forwardButtonAction() { async forwardButtonAction() {
this.navigatingForward = true; this.navigatingForward = true;
var ctu = this.zipCodeCtu; var ctu = this.zipCodeCtu;
@ -1434,6 +1438,7 @@ export default {
this.pageName this.pageName
); );
} }
this.showLoadingModal();
}, },
setDisplayWaitList() { setDisplayWaitList() {
const dateString = this.isMobileSelected const dateString = this.isMobileSelected

View file

@ -73,7 +73,11 @@ export default {
}, },
selectedValue: { selectedValue: {
get: function () { get: function () {
return this.modelValue; if (this.modelValue === AppointmentTypeStrings.DROP_OFF) {
return AppointmentTypeStrings.IN_SHOP;
} else {
return this.modelValue;
}
}, },
set: function (newValue) { set: function (newValue) {
this.$emit("update:modelValue", newValue); this.$emit("update:modelValue", newValue);

View file

@ -307,10 +307,6 @@ export default {
// I think we should call our new pushGA Event here with new mapped data // I think we should call our new pushGA Event here with new mapped data
}, },
async setZipCodeAndShop() { async setZipCodeAndShop() {
const selectedProvider = this.shopProviders.find(
(provider) => provider.providerNumber == this.localSelectedProviderNumber
);
const shopQuestionPopUpData = { const shopQuestionPopUpData = {
zipCodeData: this.zipCodeData, zipCodeData: this.zipCodeData,
shopProviderData: this.localShopProviderData, shopProviderData: this.localShopProviderData,
@ -318,6 +314,17 @@ export default {
}; };
this.$emit("shop-selected", shopQuestionPopUpData); this.$emit("shop-selected", shopQuestionPopUpData);
if (this.zipCodeData) {
// retrieve serviceability details
const serviceabilityDetails = await getServiceabilityDetails(
this.zipCodeData.zipCode,
null,
this.pageName
);
this.$emit("updated-serviceability", serviceabilityDetails.data);
}
this.closeModal(); this.closeModal();
}, },
}, },