CASH-1221
CASH-1221 fixed waitList success message from popping up when it is not supposed to, reset waitList selection on change from both modals and new date
This commit is contained in:
parent
5bef090f54
commit
fd9265a269
4 changed files with 25 additions and 2 deletions
|
|
@ -307,6 +307,11 @@ export default {
|
|||
},
|
||||
set(newSelectedDate) {
|
||||
this.$emit("update:modelValue", newSelectedDate);
|
||||
this.dispatchStoreAction(
|
||||
this.storeActions.SAVE_WAITLIST_REQUESTED,
|
||||
false,
|
||||
false
|
||||
);
|
||||
},
|
||||
},
|
||||
dropOffDurationText() {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
@updated-serviceability="setServiceabilityDetails"
|
||||
@updated-contains-military-base="setContainsMilitaryBase"
|
||||
@updated-bill-to-account-number="setBillToAccountNumber"
|
||||
@reset-waitlist="resetWaitlist"
|
||||
linkWidgetName="ServiceZipLinkWidget"
|
||||
modalWidgetName="ServiceZipModalWidget" />
|
||||
<alert
|
||||
|
|
@ -991,6 +992,14 @@ export default {
|
|||
|
||||
this.isVehicleProtected = null;
|
||||
},
|
||||
resetWaitlist(){
|
||||
this.dispatchStoreAction(
|
||||
this.storeActions.SAVE_WAITLIST_REQUESTED,
|
||||
false,
|
||||
false
|
||||
);
|
||||
this.waitListRequested = false;
|
||||
},
|
||||
setServiceabilityDetails(serviceabilityDetails) {
|
||||
this.isGlassServiceableInshop = serviceabilityDetails.isGlassServiceableInshop;
|
||||
this.isRecalibrationServiceableInshop =
|
||||
|
|
@ -1105,6 +1114,7 @@ export default {
|
|||
};
|
||||
},
|
||||
onShopSelected(shopQuestionPopUpData) {
|
||||
this.resetWaitlist();
|
||||
this.shopProviderData = shopQuestionPopUpData.shopProviderData;
|
||||
this.setServiceabilityDetails(shopQuestionPopUpData.serviceabilityDetails);
|
||||
const selectedProvider = this.shopProviderData.shopProviders.find((shopProvider) => {
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ import alert from "@/ux-components/alert/alert.vue";
|
|||
import experimentMixin from "@/mixins/experiment-mixin";
|
||||
import { experimentSettings } from "@/constants/experiments";
|
||||
import store from "@/store";
|
||||
import { storeActions } from "@/constants/store-actions";
|
||||
|
||||
// Helpers
|
||||
import { deepClone } from "@/helpers/object-helper";
|
||||
|
|
@ -144,7 +145,6 @@ export default {
|
|||
return {
|
||||
selectedRouteCode: null,
|
||||
timeSlotModalListButton: timeSlotModalListButton,
|
||||
waitListRequested: this.getWaitListRequestedFromStore(),
|
||||
selectedAnswerForDropOffOrInshop: null,
|
||||
selectedAnswerForTimeSlots: null,
|
||||
};
|
||||
|
|
@ -345,6 +345,14 @@ export default {
|
|||
waitListSuccessText() {
|
||||
return this.getCmsContent("WaitListSuccessWidget", "BodyText");
|
||||
},
|
||||
waitListRequested: {
|
||||
get(){
|
||||
return this.$store.getters.order.customer?.waitListRequested;
|
||||
},
|
||||
set(value) {
|
||||
this.dispatchStoreAction(storeActions.SAVE_WAITLIST_REQUESTED, value)
|
||||
},
|
||||
},
|
||||
isMobileAppointment() {
|
||||
return this.appointmentType === AppointmentTypeStrings.MOBILE;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ export default {
|
|||
this.$emit("updated-serviceability", serviceabilityDetails.data);
|
||||
this.$emit("updated-contains-military-base", zipCodeData.containsMilitaryBase);
|
||||
this.$emit("updated-bill-to-account-number", billToAccountNumber);
|
||||
|
||||
this.$emit("reset-waitlist");
|
||||
// update the page level model
|
||||
this.$emit("update:modelValue", this.internalModel);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue