refactor: Redo env var names to work with vite. Add version
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m1s
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m1s
This commit is contained in:
@@ -164,7 +164,7 @@ const reservationStore = useReservationStore();
|
||||
const boatSelect = ref(false);
|
||||
const bookingForm = ref<BookingForm>({ ...newForm });
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
const $router = useRouter();
|
||||
|
||||
watch(reservation, (newReservation) => {
|
||||
if (!newReservation) {
|
||||
@@ -183,7 +183,7 @@ watch(reservation, (newReservation) => {
|
||||
}
|
||||
});
|
||||
|
||||
const updateInterval = (interval: Interval) => {
|
||||
const updateInterval = (interval: Interval | null) => {
|
||||
bookingForm.value.interval = interval;
|
||||
boatSelect.value = false;
|
||||
};
|
||||
@@ -210,7 +210,8 @@ const boat = computed((): Boat | null => {
|
||||
});
|
||||
|
||||
const onDelete = () => {
|
||||
reservationStore.deleteReservation(reservation.value?.id);
|
||||
reservationStore.deleteReservation(reservation.value?.$id);
|
||||
$router.go(-1);
|
||||
};
|
||||
|
||||
const onReset = () => {
|
||||
@@ -279,6 +280,6 @@ const onSubmit = async () => {
|
||||
message: 'Failed to book!' + e,
|
||||
});
|
||||
}
|
||||
router.go(-1);
|
||||
$router.go(-1);
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user