|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <q-dialog ref="dialogRef" persistent maximized transition-show="slide-up" transition-hide="slide-down">
|
|
|
|
|
|
|
+ <q-dialog ref="dialogRef" maximized transition-show="slide-up" transition-hide="slide-down">
|
|
|
<div class="dialog-root">
|
|
<div class="dialog-root">
|
|
|
|
|
|
|
|
<div class="dialog-header row items-center q-px-md q-pt-md q-pb-sm bg-white">
|
|
<div class="dialog-header row items-center q-px-md q-pt-md q-pb-sm bg-white">
|
|
@@ -104,6 +104,7 @@ import { createSchedule, getClientProviderBlocks } from 'src/api/schedule';
|
|
|
import { userStore } from 'src/stores/user';
|
|
import { userStore } from 'src/stores/user';
|
|
|
import ServiceSelectionSheet from './ServiceSelectionSheet.vue';
|
|
import ServiceSelectionSheet from './ServiceSelectionSheet.vue';
|
|
|
import ServiceTimeSelectionDialog from './ServiceTimeSelectionDialog.vue';
|
|
import ServiceTimeSelectionDialog from './ServiceTimeSelectionDialog.vue';
|
|
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
provider: { type: Object, required: true },
|
|
provider: { type: Object, required: true },
|
|
@@ -120,7 +121,7 @@ const store = userStore();
|
|
|
const bookings = ref([props.initialBooking]);
|
|
const bookings = ref([props.initialBooking]);
|
|
|
const submitting = ref(false);
|
|
const submitting = ref(false);
|
|
|
const primaryAddress = ref(null);
|
|
const primaryAddress = ref(null);
|
|
|
-
|
|
|
|
|
|
|
+const router = useRouter();
|
|
|
const showCalendar = ref(false);
|
|
const showCalendar = ref(false);
|
|
|
const addDateValue = ref(null);
|
|
const addDateValue = ref(null);
|
|
|
const loadingAvailability = ref(false);
|
|
const loadingAvailability = ref(false);
|
|
@@ -330,6 +331,7 @@ const submitOrder = async () => {
|
|
|
$q.notify({ type: 'negative', message: msg });
|
|
$q.notify({ type: 'negative', message: msg });
|
|
|
} finally {
|
|
} finally {
|
|
|
submitting.value = false;
|
|
submitting.value = false;
|
|
|
|
|
+ router.push({ name: 'DashboardPage' });
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|