Fix booking update and reactivity
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m28s
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m28s
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
</q-card>
|
||||
<div v-else>
|
||||
<div
|
||||
v-for="reservation in sortedUserReservations"
|
||||
v-for="reservation in futureUserReservations"
|
||||
:key="reservation.$id">
|
||||
<ReservationCardComponent :modelValue="reservation" />
|
||||
</div>
|
||||
@@ -61,10 +61,11 @@
|
||||
<script setup lang="ts">
|
||||
import { useReservationStore } from 'src/stores/reservation';
|
||||
import ReservationCardComponent from 'src/components/scheduling/ReservationCardComponent.vue';
|
||||
import { ref } from 'vue';
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
const { sortedUserReservations, futureUserReservations, pastUserReservations } =
|
||||
useReservationStore();
|
||||
const { futureUserReservations, pastUserReservations } = useReservationStore();
|
||||
|
||||
onMounted(() => useReservationStore().fetchUserReservations());
|
||||
|
||||
const tab = ref('upcoming');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user