CASH-845 - prettier edits

This commit is contained in:
AdamCaouetteSafelite 2025-07-09 09:04:46 -04:00
parent 35dbb3887b
commit f4a830cab9
3 changed files with 15 additions and 13 deletions

View file

@ -879,7 +879,7 @@ export default {
},
updateAppointmentType(type) {
this.$emit("appointmentTypeUpdated", type);
}
},
},
watch: {
modelValue(newValue) {

View file

@ -753,10 +753,7 @@ export default {
}
},
isShopQuestionDisplayed() {
return (
this.appointmentType === "Inshop" ||
this.appointmentType === "Dropoff"
);
return this.appointmentType === "Inshop" || this.appointmentType === "Dropoff";
},
isAppointmentTypeDisplayed() {
// temporary adjustment
@ -1069,8 +1066,7 @@ export default {
},
updateAndSaveIsMSRFeeApplicable() {
const isMSRFeeApplicable =
this.isMobileStaticRecalibrationApplicable &&
this.appointmentType == "Mobile";
this.isMobileStaticRecalibrationApplicable && this.appointmentType == "Mobile";
this.dispatchStoreAction(
this.storeActions.SAVE_IS_MSR_FEE_APPLICABLE,
isMSRFeeApplicable
@ -1279,7 +1275,10 @@ export default {
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 (
!timeSlotInfo.timeSlot.routeCode.includes(RouteCodeFlags.ALL_DAY_DROP_OFF)
) {
@ -1582,7 +1581,7 @@ export default {
},
updateAppointmentType(type) {
this.appointmentType = type;
}
},
},
watch: {
zipCode: {

View file

@ -635,13 +635,16 @@ export default {
}
},
selectedAnswerForDropOffOrInshop(newValue) {
if (newValue == PICK_A_TIME_BUTTON_VALUE) { // Inshop selected
if (newValue == PICK_A_TIME_BUTTON_VALUE) {
// Inshop selected
this.selectedRouteCode = null;
this.$emit("appointmentTypeUpdated", AppointmentTypeStrings.IN_SHOP);
} else if (newValue) { // Dropoff selected
} else if (newValue) {
// Dropoff selected
this.$emit("appointmentTypeUpdated", AppointmentTypeStrings.DROP_OFF);
this.selectedRouteCode = newValue;
} else { // none selected
} else {
// none selected
this.selectedAnswerForTimeSlots = null;
this.$emit("appointmentTypeUpdated", null);
}
@ -649,7 +652,7 @@ export default {
selectedAnswerForTimeSlots(newValue) {
if (newValue) {
this.selectedRouteCode = newValue;
}
}
},
},
components: {