CASH-464: prettier formatting

This commit is contained in:
Adam Caouette 2025-04-23 11:58:22 -04:00
parent 980ce409e1
commit ec3991ccb7
3 changed files with 17 additions and 21 deletions

View file

@ -99,7 +99,7 @@
@click="showAnotherMonth"> @click="showAnotherMonth">
View more dates View more dates
</button> </button>
<timeSlotQuestion <timeSlotQuestion
ref="timeSlotModalQuestion" ref="timeSlotModalQuestion"
v-model="selectedTimeSlotInfo" v-model="selectedTimeSlotInfo"
cmsWidgetName="TimeSlotModalQuestion" cmsWidgetName="TimeSlotModalQuestion"
@ -115,15 +115,10 @@
:premiumAppointmentFee="mobilePremiumAppointmentFee" :premiumAppointmentFee="mobilePremiumAppointmentFee"
:displayWaitList="displayWaitList" :displayWaitList="displayWaitList"
:timeSlotsForSelectedDate="timeSlotsForSelectedDate" :timeSlotsForSelectedDate="timeSlotsForSelectedDate"
:estimatedServiceMinutesMinimum=" :estimatedServiceMinutesMinimum="selectableDatesData.estimatedServiceMinutesMinimum"
selectableDatesData.estimatedServiceMinutesMinimum :estimatedServiceMinutesMaximum="selectableDatesData.estimatedServiceMinutesMaximum"
"
:estimatedServiceMinutesMaximum="
selectableDatesData.estimatedServiceMinutesMaximum
"
@waitListRequested="handleWaitListRequested" @waitListRequested="handleWaitListRequested"
@time-slot-modal-closed="timeSlotModalClosed" @time-slot-modal-closed="timeSlotModalClosed" />
/>
</fieldset> </fieldset>
</div> </div>
</template> </template>
@ -169,7 +164,6 @@ export default {
hideSomeDaysForInitialView: null, hideSomeDaysForInitialView: null,
selectedTimeSlotInfo: this.getSelectedTimeSlotInfo(), selectedTimeSlotInfo: this.getSelectedTimeSlotInfo(),
}; };
}, },
props: { props: {
@ -797,8 +791,6 @@ export default {
getSupportingItems() { getSupportingItems() {
return store.getters.lineItems.supportingItems; return store.getters.lineItems.supportingItems;
}, },
}, },
watch: { watch: {
modelValue(newValue) { modelValue(newValue) {
@ -813,10 +805,7 @@ export default {
} }
}, },
selectedTimeSlotInfo(newValue) { selectedTimeSlotInfo(newValue) {
this.$emit( this.$emit("TimeSlotSelected", newValue); // NEEDED ON SCHEDULE - to update footer button text and to save to Store correctly
"TimeSlotSelected",
newValue
); // NEEDED ON SCHEDULE - to update footer button text and to save to Store correctly
}, },
}, },
components: { components: {

View file

@ -570,7 +570,8 @@ export default {
experimentMixin.methods.hasSettingEqualTo( experimentMixin.methods.hasSettingEqualTo(
experimentSettings.DISPLAY_WAITLIST, experimentSettings.DISPLAY_WAITLIST,
"true" "true"
) && this.selectableDatesData.days[0] ) &&
this.selectableDatesData.days[0]
) { ) {
const dateString = this.selectableDatesData.days[0].date; const dateString = this.selectableDatesData.days[0].date;
const [year, month, day] = dateString.split("-").map(Number); const [year, month, day] = dateString.split("-").map(Number);
@ -674,7 +675,7 @@ export default {
}, },
updateTimeSlot(timeSlot) { updateTimeSlot(timeSlot) {
this.selectedTimeSlotInfo = timeSlot; this.selectedTimeSlotInfo = timeSlot;
} },
}, },
watch: { watch: {
selectedDate(newValue, oldValue) { selectedDate(newValue, oldValue) {
@ -734,5 +735,4 @@ export default {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
} }
} }
</style> </style>

View file

@ -295,8 +295,15 @@ export default {
} }
}, },
isSameDay() { isSameDay() {
console.log("%c TSQ - calculating isSameDay; this.selectedDate ", "color: beige;", this.selectedDate); console.log(
console.log("%c TSQ - calculating isSameDay; IS THIS WORKING OK? ", "color: beige;"); "%c TSQ - calculating isSameDay; this.selectedDate ",
"color: beige;",
this.selectedDate
);
console.log(
"%c TSQ - calculating isSameDay; IS THIS WORKING OK? ",
"color: beige;"
);
debugger; // eslint-disable-line no-debugger debugger; // eslint-disable-line no-debugger
if (!this.timeSlotsForSelectedDate) { if (!this.timeSlotsForSelectedDate) {