Update QCalendar

This commit is contained in:
2024-04-13 21:01:42 -04:00
parent 84867875c5
commit 1a18881980
4 changed files with 14 additions and 8 deletions

View File

@@ -53,8 +53,8 @@
import { useScheduleStore } from 'src/stores/schedule';
import { ref } from 'vue';
const scheduleStore = useScheduleStore();
import { QCalendarDay, today, makeDateTime } from '@quasar/quasar-ui-qcalendar';
import { makeDateTime, today } from '@quasar/quasar-ui-qcalendar';
import { QCalendarDay } from '@quasar/quasar-ui-qcalendar';
const selectedDate = ref(today());
// Use ref to get a reference to the QCalendarDay component

View File

@@ -4,7 +4,6 @@ import { Boat, useBoatStore } from './boat';
import { date } from 'quasar';
import { DateOptions } from 'quasar';
import { Timestamp } from '@quasar/quasar-ui-qcalendar';
import { timeStamp } from 'console';
export type StatusTypes = 'tentative' | 'confirmed' | 'pending' | undefined;
export type Reservation = {
@@ -16,7 +15,8 @@ export type Reservation = {
reservationDate: Date;
status?: StatusTypes;
};
// 24 hrs in advance only 2 weekday, and 1 weekend slot
// Within 24 hrs, any available slot
/* TODO: Figure out how best to separate out where qcalendar bits should be.
e.g.: Should there be any qcalendar stuff in this store? Or should we have just JS Date
objects in here? */