Some timeblock stuff working
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user