|
|
@@ -22,8 +22,8 @@
|
|
|
@cancel="cancelSchedule"
|
|
|
/>
|
|
|
<DashboardPendingSchedules
|
|
|
- v-if="pendingServicePackages.length === 0 && pendingSchedules.length > 0"
|
|
|
- :data="pendingSchedules"
|
|
|
+ v-if="pendingServicePackages.length === 0 && acceptedSchedules.length > 0"
|
|
|
+ :data="acceptedSchedules"
|
|
|
@view-details="openAcceptedDialog"
|
|
|
@cancel="cancelSchedule"
|
|
|
/>
|
|
|
@@ -86,6 +86,7 @@ const notifications = ref([]);
|
|
|
const loading = ref(true);
|
|
|
const showSuccessModal = ref(router.currentRoute.value.fullPath.includes('showSuccessModal'));
|
|
|
const registrationComplete = computed(() => store.user?.registration_complete ?? true);
|
|
|
+const acceptedSchedules = computed(() => pendingSchedules.value.filter((s) => s.status === 'accepted'));
|
|
|
|
|
|
|
|
|
const openAcceptedDialog = (schedule) => {
|