diff --git a/src/components/BoatReservationComponent.vue b/src/components/BoatReservationComponent.vue index d391785..2ef6e63 100644 --- a/src/components/BoatReservationComponent.vue +++ b/src/components/BoatReservationComponent.vue @@ -5,7 +5,7 @@ class="col-lg-4 col-md-6 col-sm-8 col-xs-12">
- {{ reservation?.value ? 'Modify Booking' : 'New Booking' }} + {{ reservation ? 'Modify Booking' : 'New Booking' }}
for: {{ bookingName }}
@@ -98,11 +98,15 @@ + + color="secondary" /> - + @@ -174,6 +180,11 @@ watch(reservation, (newReservation) => { } }); +const updateInterval = (interval: Interval) => { + bookingForm.value.interval = interval; + boatSelect.value = false; +}; + const bookingDuration = computed((): { hours: number; minutes: number } => { if (bookingForm.value.interval?.start && bookingForm.value.interval?.end) { const start = new Date(bookingForm.value.interval.start).getTime(); @@ -195,6 +206,10 @@ const boat = computed((): Boat | null => { return boatStore.getBoatById(boatId); }); +const onDelete = () => { + reservationStore.deleteReservation(reservation.value?.id); +}; + const onReset = () => { bookingForm.value.interval = null; bookingForm.value = reservation.value diff --git a/src/components/ToolbarComponent.vue b/src/components/ToolbarComponent.vue index 2c956fe..b46ee06 100644 --- a/src/components/ToolbarComponent.vue +++ b/src/components/ToolbarComponent.vue @@ -7,16 +7,16 @@ round icon="menu" aria-label="Menu" - @click="toggleLeftDrawer" - /> + @click="toggleLeftDrawer" /> - {{ pageTitle }} - - - + {{ pageTitle }} + +
v2024.6.3.2
- +