Merge pull request #3200 from Safelite/feature/CASH-2420

Feature/CASH 2420
This commit is contained in:
Chris 2026-06-01 14:38:15 -04:00 committed by GitHub
commit 20eead8d29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 1 deletions

View file

@ -125,7 +125,8 @@
:zipCodeFromParent="zipCode" :zipCodeFromParent="zipCode"
:isShopQuestionDisplayed="isShopQuestionDisplayed" :isShopQuestionDisplayed="isShopQuestionDisplayed"
@shop-selected="onShopSelected" @shop-selected="onShopSelected"
@updated-serviceability="setServiceabilityDetails" /> @updated-serviceability="setServiceabilityDetails"
@updated-mobile-fee-part="setMobileFeePart" />
</div> </div>
<div> <div>
<textBlock <textBlock
@ -1318,6 +1319,15 @@ export default {
moreShopTimeSlots.mobileTimeSlotsData.days moreShopTimeSlots.mobileTimeSlotsData.days
); );
if (!this.selectableDatesMobile.estimatedServiceMinutesMinimum) {
this.selectableDatesMobile.estimatedServiceMinutesMinimum =
moreShopTimeSlots.mobileTimeSlotsData.estimatedServiceMinutesMinimum;
}
if (!this.selectableDatesMobile.estimatedServiceMinutesMaximum) {
this.selectableDatesMobile.estimatedServiceMinutesMaximum =
moreShopTimeSlots.mobileTimeSlotsData.estimatedServiceMinutesMaximum;
}
return moreShopTimeSlots; return moreShopTimeSlots;
}, },

View file

@ -19,6 +19,7 @@
:zipCodeFromParent="zipCodeFromParent" :zipCodeFromParent="zipCodeFromParent"
@shop-selected="onShopSelected" @shop-selected="onShopSelected"
@updated-serviceability="setServiceabilityDetails" @updated-serviceability="setServiceabilityDetails"
@updated-mobile-fee-part="setMobileFeePart"
cmsWidgetName="YourSafeliteShopWidget" /> cmsWidgetName="YourSafeliteShopWidget" />
</div> </div>
</template> </template>
@ -76,6 +77,9 @@ export default {
setServiceabilityDetails(serviceabilityDetails) { setServiceabilityDetails(serviceabilityDetails) {
this.$emit("updated-serviceability", serviceabilityDetails); this.$emit("updated-serviceability", serviceabilityDetails);
}, },
setMobileFeePart(mobileFeePart) {
this.$emit("updated-mobile-fee-part", mobileFeePart);
},
}, },
}; };
</script> </script>

View file

@ -107,6 +107,7 @@ import {
getServiceabilityDetails, getServiceabilityDetails,
getClosestApplicableShops, getClosestApplicableShops,
getShopProviderData, getShopProviderData,
getPricedMobileFeePart,
} from "@/layouts/service-location/helpers/service-location-helper/service-location-helper"; } from "@/layouts/service-location/helpers/service-location-helper/service-location-helper";
defineRule("option-required", required(errorMessages.OPTION_REQUIRED)); defineRule("option-required", required(errorMessages.OPTION_REQUIRED));
@ -338,6 +339,14 @@ export default {
); );
this.$emit("updated-serviceability", serviceabilityDetails.data); this.$emit("updated-serviceability", serviceabilityDetails.data);
// retrieve mobile fee part
const mobileFeePart = await getPricedMobileFeePart(
this.zipCodeData.zipCode,
this.pageName
);
this.$emit("updated-mobile-fee-part", mobileFeePart);
} }
this.closeModal(); this.closeModal();