Some timeblock stuff working

This commit is contained in:
2024-05-08 13:32:10 -04:00
parent 033993b1b8
commit 274d0193f7
6 changed files with 239 additions and 39 deletions

View File

@@ -73,7 +73,7 @@ import {
} from '@quasar/quasar-ui-qcalendar';
import CalendarHeaderComponent from './CalendarHeaderComponent.vue';
import { ref, computed, onMounted } from 'vue';
import { ref, computed } from 'vue';
import { useBoatStore } from 'src/stores/boat';
import { useScheduleStore } from 'src/stores/schedule';
import { Timeblock } from 'src/stores/schedule.types';
@@ -86,12 +86,6 @@ const selectedDate = ref(today());
const calendar = ref<QCalendarDay | null>(null);
onMounted(async () => {
await boatStore.fetchBoats();
await scheduleStore.fetchTimeBlocks();
// useScheduleStore().fetchReservations()
}); // TODO: Probably need this to be more sophisticated.
function handleSwipe({ ...event }) {
event.direction === 'right' ? calendar.value?.prev() : calendar.value?.next();
}