Ver Fonte

refactor: ajuste pagamento service package

Gustavo Mantovani há 5 dias atrás
pai
commit
69dc9eca6b
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      src/pages/dashboard/DashboardPage.vue

+ 3 - 2
src/pages/dashboard/DashboardPage.vue

@@ -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) => {