|
@@ -6,7 +6,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
- <DashboardHeaderBar :data="headerBar" />
|
|
|
|
|
|
|
+ <DashboardHeaderBar
|
|
|
|
|
+ :data="headerBar"
|
|
|
|
|
+ :notifications="notifications"
|
|
|
|
|
+/>
|
|
|
<DashboardRegistrationIncomplete v-if="!registrationComplete" />
|
|
<DashboardRegistrationIncomplete v-if="!registrationComplete" />
|
|
|
<DashboardSummaryInfos v-else :data="summaryInfos" />
|
|
<DashboardSummaryInfos v-else :data="summaryInfos" />
|
|
|
<DashboardPaymentIncomplete v-if="!hasPaymentMethods" />
|
|
<DashboardPaymentIncomplete v-if="!hasPaymentMethods" />
|
|
@@ -68,11 +71,13 @@ const lastDoneSchedules = ref([]);
|
|
|
const favoriteProviders = ref([]);
|
|
const favoriteProviders = ref([]);
|
|
|
const providersClose = ref([]);
|
|
const providersClose = ref([]);
|
|
|
const todaySchedules = ref([]);
|
|
const todaySchedules = ref([]);
|
|
|
|
|
+const notifications = ref([]);
|
|
|
const loading = ref(true);
|
|
const loading = ref(true);
|
|
|
const showSuccessModal = ref(router.currentRoute.value.fullPath.includes('showSuccessModal') || false);
|
|
const showSuccessModal = ref(router.currentRoute.value.fullPath.includes('showSuccessModal') || false);
|
|
|
|
|
|
|
|
const registrationComplete = computed(() => store.user?.registration_complete ?? true);
|
|
const registrationComplete = computed(() => store.user?.registration_complete ?? true);
|
|
|
|
|
|
|
|
|
|
+
|
|
|
const openAcceptedDialog = (schedule) => {
|
|
const openAcceptedDialog = (schedule) => {
|
|
|
$q.dialog({
|
|
$q.dialog({
|
|
|
component: ScheduleAcceptedDialog,
|
|
component: ScheduleAcceptedDialog,
|
|
@@ -95,6 +100,7 @@ const reloadDashboard = async () => {
|
|
|
providersClose.value = response.providersClose ?? [];
|
|
providersClose.value = response.providersClose ?? [];
|
|
|
clientProposals.value = response.schedulesProposals ?? [];
|
|
clientProposals.value = response.schedulesProposals ?? [];
|
|
|
todaySchedules.value = response.todaySchedules ?? [];
|
|
todaySchedules.value = response.todaySchedules ?? [];
|
|
|
|
|
+ notifications.value = response.notifications ?? [];
|
|
|
hasPaymentMethods.value = response.has_payment_methods ?? true;
|
|
hasPaymentMethods.value = response.has_payment_methods ?? true;
|
|
|
}
|
|
}
|
|
|
if( showSuccessModal.value == true) {
|
|
if( showSuccessModal.value == true) {
|