Add List View

This commit is contained in:
2024-05-24 20:45:04 -04:00
parent 2fb236cf97
commit 9f398e5509
6 changed files with 152 additions and 13 deletions

View File

@@ -44,12 +44,7 @@
label="Start" />
</q-item-section>
<q-item-section class="text-body2">
{{
date.formatDate(
new Date(bookingForm.startDate as string),
'ddd MMM Do hh:mm A'
)
}}
{{ formatDate(bookingForm.startDate) }}
</q-item-section>
</q-item>
<q-item class="q-ma-none">
@@ -59,12 +54,7 @@
label="End" />
</q-item-section>
<q-item-section class="text-body2">
{{
date.formatDate(
new Date(bookingForm.endDate as string),
'ddd MMM Do hh:mm A'
)
}}
{{ formatDate(bookingForm.endDate) }}
</q-item-section>
</q-item>
</q-list>
@@ -131,10 +121,11 @@
import { computed, ref, watch } from 'vue';
import { useAuthStore } from 'src/stores/auth';
import { Boat, useBoatStore } from 'src/stores/boat';
import { date, useQuasar } from 'quasar';
import { useQuasar } from 'quasar';
import { Interval, Reservation } from 'src/stores/schedule.types';
import BoatScheduleTableComponent from 'src/components/scheduling/boat/BoatScheduleTableComponent.vue';
import { getNewId } from 'src/utils/misc';
import { formatDate } from 'src/utils/schedule';
import { useRouter } from 'vue-router';
import { useReservationStore } from 'src/stores/reservation';