Selaa lähdekoodia

style: :lipstick: style (cor status) corrigido cor de status pendente

corrigido cor de status pendente que estava ilegivel, alterado para uma cor mais escura

fase:dev | origin:melhoria-interna
Gustavo Zanatta 1 päivä sitten
vanhempi
commit
9e2d3e56c0

+ 1 - 1
src/helpers/utils.js

@@ -106,7 +106,7 @@ const normalizeString = (val) =>
 const getStatusColor = (status) => {
   const s = typeof status === "object" ? status?.value : status;
   if (s === "active")  return "positive";
-  if (s === "pending") return "warning";
+  if (s === "pending") return "warning-light";
   if (s === "inactive") return "inactive";
   return "grey-6";
 };

+ 2 - 2
src/pages/associado/agendamentos/AgendamentosPage.vue

@@ -18,7 +18,7 @@
       <!-- Tab: Nova Solicitação -->
       <div v-if="activeTab === 'novo'">
         <div v-if="isOnLeave" class="on-leave-notice">
-          <q-icon name="mdi-account-off-outline" size="32px" color="warning" />
+          <q-icon name="mdi-account-off-outline" size="32px" color="warning-light" />
           <div class="on-leave-notice__text">{{ $t('associado.on_leave_appointment') }}</div>
         </div>
 
@@ -188,7 +188,7 @@ const pagedAppointments = computed(() => {
 });
 
 const statusColor = (status) => {
-  const map = { pendente: "warning", confirmado: "positive", cancelado: "negative", recusado: "negative", concluido: "grey" };
+  const map = { pendente: "warning-light", confirmado: "positive", cancelado: "negative", recusado: "negative", concluido: "grey" };
   return map[status] ?? "grey";
 };
 

+ 2 - 2
src/pages/associado/profile/ProfilePage.vue

@@ -175,7 +175,7 @@ const avatarInputRef = useTemplateRef("avatarInputRef");
 const statusBadgeColor = computed(() => {
   switch (user.value?.status) {
     case "active":   return "positive";
-    case "inactive": return "warning";
+    case "inactive": return "grey";
     case "canceled": return "negative";
     default:         return "grey";
   }
@@ -204,7 +204,7 @@ const dependentStatusColor = (status) => {
   switch (status) {
     case "approved": return "positive";
     case "refused":  return "negative";
-    case "pending":  return "warning";
+    case "pending":  return "warning-light";
     default:         return "grey";
   }
 };