diff --git a/src/components/scheduling/BoatSelection.vue b/src/components/scheduling/BoatSelection.vue index 1dc3edf..5da20a4 100644 --- a/src/components/scheduling/BoatSelection.vue +++ b/src/components/scheduling/BoatSelection.vue @@ -1,8 +1,8 @@ @@ -84,7 +87,7 @@ import { ref } from 'vue'; import { today, - parsed, + parseTimestamp, addToDate, Timestamp, } from '@quasar/quasar-ui-qcalendar'; @@ -115,7 +118,7 @@ const formattedMonth = computed(() => { }); const disabledBefore = computed(() => { - const todayTs = parsed(today()) as Timestamp; + const todayTs = parseTimestamp(today()) as Timestamp; return addToDate(todayTs, { day: -1 }).date; }); @@ -134,6 +137,14 @@ function monthFormatter() { } } +const disabledDays = () => { + // Placeholder. This should actually compute days when boats aren't available. + const days = []; + const todayTs = parseTimestamp(today()) as Timestamp; + days.push(addToDate(todayTs, { day: 2 }).date); + return days; +}; + const boatoptions = (boat: Boat) => { const options = useScheduleStore() .getTimeblocksForDate(date.extractDate(selectedDate.value, 'YYYY-MM-DD'))