From 952d99d3926eabe66a6f82a25a0d05e5b31b9ebc Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 2 Jun 2023 07:36:55 -0400 Subject: [PATCH 1/2] Added missing fields to vuex, and loading method for isVehicleProtected --- src/layouts/service-location/service-location.vue | 5 ++++- src/store/index.js | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 713cdb089..252eac529 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -142,7 +142,7 @@ export default { city: this.getServiceCityFromStore(), state: this.getServiceStateFromStore(), zipCode: this.getServiceZipCodeFromStore(), - isVehicleProtected: null, + isVehicleProtected: this.getIsVehicleProtectedFromStore(), isGlassServiceableInshop: null, isRecalibrationServiceableInshop: null, isGlassServiceableMobile: null, @@ -348,6 +348,9 @@ export default { getServiceZipCodeFromStore() { return store.getters.order.serviceLocation.zipCode; }, + getIsVehicleProtectedFromStore() { + return store.getters.order.serviceLocation.isVehicleProtected; + }, getSelectedAppointmentType() { return store.getters.order.serviceLocation.appointmentType; }, diff --git a/src/store/index.js b/src/store/index.js index 014ed71af..3d1b21dd4 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -39,11 +39,13 @@ const getDefaultState = () => { }, serviceLocation: { address: null, + address2: null, city: null, state: null, zipCode: null, zipCodeCtu: null, appointmentType: null, + isVehicleProtected: null, provider: { providerNumber: null, address: { @@ -1833,7 +1835,7 @@ export const actions = { }, saveGlassParts(context, parts) { - context.commit(storeMutations.UPDATE_GLASS_PARTS, parts); + context.commit(storeMutations.UPDATE_GLASS_PARTS, parts); }, clearVin(context) { From c26b03e961a7e130d6d29074581ecfecc7355f33 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 2 Jun 2023 07:38:42 -0400 Subject: [PATCH 2/2] Prettified --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 3d1b21dd4..d6ffe60c0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1835,7 +1835,7 @@ export const actions = { }, saveGlassParts(context, parts) { - context.commit(storeMutations.UPDATE_GLASS_PARTS, parts); + context.commit(storeMutations.UPDATE_GLASS_PARTS, parts); }, clearVin(context) {