Refactor Reservations into new store
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m2s

This commit is contained in:
2024-05-13 12:42:10 -04:00
parent b0921ccf32
commit dd631b71bb
6 changed files with 96 additions and 89 deletions

View File

@@ -52,10 +52,10 @@
</template>
<script setup lang="ts">
import { useScheduleStore } from 'src/stores/schedule';
import { useReservationStore } from 'src/stores/reservation';
import { Reservation } from 'src/stores/schedule.types';
import { ref } from 'vue';
const scheduleStore = useScheduleStore();
const reservationStore = useReservationStore();
import { TimestampOrNull, parsed, today } from '@quasar/quasar-ui-qcalendar';
import { QCalendarDay } from '@quasar/quasar-ui-qcalendar';
import { date } from 'quasar';
@@ -87,7 +87,7 @@ function slotStyle(
}
function reservationEvents(timestamp: Timestamp) {
return scheduleStore.getBoatReservations(timestamp);
return reservationStore.getBoatReservations(timestamp);
}
function onMoved(data: Event) {
console.log('onMoved', data);