CASH-845 - prettier edits
This commit is contained in:
parent
35dbb3887b
commit
f4a830cab9
3 changed files with 15 additions and 13 deletions
|
|
@ -879,7 +879,7 @@ export default {
|
||||||
},
|
},
|
||||||
updateAppointmentType(type) {
|
updateAppointmentType(type) {
|
||||||
this.$emit("appointmentTypeUpdated", type);
|
this.$emit("appointmentTypeUpdated", type);
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
modelValue(newValue) {
|
modelValue(newValue) {
|
||||||
|
|
|
||||||
|
|
@ -753,10 +753,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isShopQuestionDisplayed() {
|
isShopQuestionDisplayed() {
|
||||||
return (
|
return this.appointmentType === "Inshop" || this.appointmentType === "Dropoff";
|
||||||
this.appointmentType === "Inshop" ||
|
|
||||||
this.appointmentType === "Dropoff"
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
isAppointmentTypeDisplayed() {
|
isAppointmentTypeDisplayed() {
|
||||||
// temporary adjustment
|
// temporary adjustment
|
||||||
|
|
@ -1069,8 +1066,7 @@ export default {
|
||||||
},
|
},
|
||||||
updateAndSaveIsMSRFeeApplicable() {
|
updateAndSaveIsMSRFeeApplicable() {
|
||||||
const isMSRFeeApplicable =
|
const isMSRFeeApplicable =
|
||||||
this.isMobileStaticRecalibrationApplicable &&
|
this.isMobileStaticRecalibrationApplicable && this.appointmentType == "Mobile";
|
||||||
this.appointmentType == "Mobile";
|
|
||||||
this.dispatchStoreAction(
|
this.dispatchStoreAction(
|
||||||
this.storeActions.SAVE_IS_MSR_FEE_APPLICABLE,
|
this.storeActions.SAVE_IS_MSR_FEE_APPLICABLE,
|
||||||
isMSRFeeApplicable
|
isMSRFeeApplicable
|
||||||
|
|
@ -1279,7 +1275,10 @@ export default {
|
||||||
timeSlotInfo.timeSlot.date
|
timeSlotInfo.timeSlot.date
|
||||||
)}`;
|
)}`;
|
||||||
|
|
||||||
if (this.appointmentType === AppointmentTypeStrings.IN_SHOP || this.appointmentType === AppointmentTypeStrings.DROP_OFF) {
|
if (
|
||||||
|
this.appointmentType === AppointmentTypeStrings.IN_SHOP ||
|
||||||
|
this.appointmentType === AppointmentTypeStrings.DROP_OFF
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
!timeSlotInfo.timeSlot.routeCode.includes(RouteCodeFlags.ALL_DAY_DROP_OFF)
|
!timeSlotInfo.timeSlot.routeCode.includes(RouteCodeFlags.ALL_DAY_DROP_OFF)
|
||||||
) {
|
) {
|
||||||
|
|
@ -1582,7 +1581,7 @@ export default {
|
||||||
},
|
},
|
||||||
updateAppointmentType(type) {
|
updateAppointmentType(type) {
|
||||||
this.appointmentType = type;
|
this.appointmentType = type;
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
zipCode: {
|
zipCode: {
|
||||||
|
|
|
||||||
|
|
@ -635,13 +635,16 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectedAnswerForDropOffOrInshop(newValue) {
|
selectedAnswerForDropOffOrInshop(newValue) {
|
||||||
if (newValue == PICK_A_TIME_BUTTON_VALUE) { // Inshop selected
|
if (newValue == PICK_A_TIME_BUTTON_VALUE) {
|
||||||
|
// Inshop selected
|
||||||
this.selectedRouteCode = null;
|
this.selectedRouteCode = null;
|
||||||
this.$emit("appointmentTypeUpdated", AppointmentTypeStrings.IN_SHOP);
|
this.$emit("appointmentTypeUpdated", AppointmentTypeStrings.IN_SHOP);
|
||||||
} else if (newValue) { // Dropoff selected
|
} else if (newValue) {
|
||||||
|
// Dropoff selected
|
||||||
this.$emit("appointmentTypeUpdated", AppointmentTypeStrings.DROP_OFF);
|
this.$emit("appointmentTypeUpdated", AppointmentTypeStrings.DROP_OFF);
|
||||||
this.selectedRouteCode = newValue;
|
this.selectedRouteCode = newValue;
|
||||||
} else { // none selected
|
} else {
|
||||||
|
// none selected
|
||||||
this.selectedAnswerForTimeSlots = null;
|
this.selectedAnswerForTimeSlots = null;
|
||||||
this.$emit("appointmentTypeUpdated", null);
|
this.$emit("appointmentTypeUpdated", null);
|
||||||
}
|
}
|
||||||
|
|
@ -649,7 +652,7 @@ export default {
|
||||||
selectedAnswerForTimeSlots(newValue) {
|
selectedAnswerForTimeSlots(newValue) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
this.selectedRouteCode = newValue;
|
this.selectedRouteCode = newValue;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue