diff --git a/src/layouts/service-location/service-location.spec.js b/src/layouts/service-location/service-location.spec.js
index 95842e0c2..52239462c 100644
--- a/src/layouts/service-location/service-location.spec.js
+++ b/src/layouts/service-location/service-location.spec.js
@@ -586,7 +586,7 @@ describe("service-location.vue", () => {
);
const { wrapper } = setupMocks({});
-
+
wrapper.vm.$refs.shopQuestion.initializeComponent = jest.fn();
// Act
diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue
index 422f5ba2f..56cb88d80 100644
--- a/src/layouts/service-location/service-location.vue
+++ b/src/layouts/service-location/service-location.vue
@@ -66,12 +66,12 @@
modalWidgetName="MobileLocationModalWidget" />
item.partNumber === "RECAL STATIC" || item.partNumber === "RECAL DUAL"
+ // Specifically check for isRecalibrationServiceableMobile === false, not null or true.
+ requiresInshopRecalibration() {
+ return (
+ this.isServiceableInshop &&
+ this.isGlassServiceableMobile &&
+ this.isRecalibrationServiceableMobile === false
);
},
displayRecalibrationWarning() {
- return this.isDualOrStaticRecalibration;
+ return this.requiresInshopRecalibration;
},
displayServiceableInshopOnly() {
return (
@@ -293,6 +296,9 @@ export default {
isDropoff() {
return this.selectedAppointmentType === "Dropoff";
},
+ isMobile() {
+ return this.selectedAppointmentType === "Mobile";
+ },
},
methods: {
arePagePrerequisitesValid() {
@@ -302,7 +308,7 @@ export default {
store.getters.payment.isInsurance !== null
);
},
- setData(zipCodeData, serviceabilityDetails, mobileFeePart) {
+ setData(zipCodeData, serviceabilityDetails, mobileFeePart, shopQuestionInitialData) {
if (zipCodeData) {
this.zipContainsMilitaryBase = zipCodeData.containsMilitaryBase;
}
@@ -314,6 +320,10 @@ export default {
if (mobileFeePart) {
this.mobileFeePart = mobileFeePart;
}
+
+ if (shopQuestionInitialData) {
+ this.shopQuestionInitialData = shopQuestionInitialData;
+ }
},
setContainsMilitaryBase(val) {
if (this.zipContainsMilitaryBase !== val) {
diff --git a/src/layouts/service-location/shop-question/shop-question.vue b/src/layouts/service-location/shop-question/shop-question.vue
index c7dba4a5d..ec6c0c18f 100644
--- a/src/layouts/service-location/shop-question/shop-question.vue
+++ b/src/layouts/service-location/shop-question/shop-question.vue
@@ -9,17 +9,19 @@
alertClass="alert-info"
v-bind:isDismissible="false" />
-
+