From f4a830cab97e1117399310285fc9092663dabab8 Mon Sep 17 00:00:00 2001 From: AdamCaouetteSafelite Date: Wed, 9 Jul 2025 09:04:46 -0400 Subject: [PATCH] CASH-845 - prettier edits --- .../date-picker/date-picker.vue | 2 +- src/layouts/schedule/schedule.vue | 15 +++++++-------- .../time-slot-question/time-slot-question.vue | 11 +++++++---- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index 1dd262796..cf5f4faa1 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -879,7 +879,7 @@ export default { }, updateAppointmentType(type) { this.$emit("appointmentTypeUpdated", type); - } + }, }, watch: { modelValue(newValue) { diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index c31adb995..8758a9f96 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -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: { diff --git a/src/layouts/schedule/time-slot-question/time-slot-question.vue b/src/layouts/schedule/time-slot-question/time-slot-question.vue index d21db67a2..91301e329 100644 --- a/src/layouts/schedule/time-slot-question/time-slot-question.vue +++ b/src/layouts/schedule/time-slot-question/time-slot-question.vue @@ -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: {