Просмотр исходного кода

refactor: reload dos dados do dashboard ao aceitar proposta

Gustavo Mantovani 4 дней назад
Родитель
Сommit
5ba14aa940

+ 2 - 2
src/components/dashboard/ProposalAcceptedDialog.vue

@@ -3,7 +3,7 @@
     ref="dialogRef"
     @hide="onDialogHide"
   >
-    <q-card class="dialog-card">
+    <q-card class="dialog-card bg-white">
 
       <q-card-section class="text-center q-pt-xl">
 
@@ -58,4 +58,4 @@ const {
   max-width: 92vw;
   border-radius: 20px;
 }
-</style>
+</style>

+ 5 - 1
src/pages/dashboard/DashboardPage.vue

@@ -174,8 +174,12 @@ const openRatingDialog = (schedule) => {
 
 watch(
   () => route.query.showSuccessModal,
-  (val) => {
+  async (val) => {
     if (val === "true") {
+      if (!loading.value) {
+        await loadDashboard();
+      }
+
       $q.dialog({ component: OpportunityDialog }).onDismiss(() => {
         router.replace({ path: route.path, query: {} });
       });