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

Merge branch 'feature/diaria-kay-adicionar-numero-de-solicitações' of Softpar/sfp_front_vue_diarista_prestador into development

zntt 6 дней назад
Родитель
Сommit
95a5edc7fe

+ 21 - 10
src/components/dashboard/DashboardOpportunities.vue

@@ -5,16 +5,27 @@
         {{ $t("provider.dashboard.opportunities.title") }}
       </div>
 
-      <q-btn
-        v-if="data.length"
-        color="grey-6"
-        flat
-        no-caps
-        size="sm"
-        :label="$t('common.see_all')"
-        @click="openAllOpportunities"
-      />
-    </div>
+     <div
+  v-if="data.length"
+  class="row items-center"
+>
+  <q-btn
+    color="grey-6"
+    flat
+    no-caps
+    size="sm"
+    :label="$t('common.see_all')"
+    @click="openAllOpportunities"
+  />
+
+  <q-badge
+    class="q-ml-xs"
+    color="negative"
+    rounded
+    :label="data.length"
+  />
+</div>
+</div>
 
     <div
       v-if="!data.length"

+ 9 - 1
src/components/dashboard/DashboardSolicitations.vue

@@ -13,7 +13,15 @@
         no-caps
         size="sm"
         :label="$t('common.see_all')"
-      />
+        >
+  <q-badge
+    v-if="groupedSolicitations.length"
+    color="negative"
+    floating
+    rounded
+    :label="groupedSolicitations.length"
+  />
+  </q-btn>
     </div>
 
     <div