Ver código fonte

feat(contracts): add pending status handling

alvesantos 1 semana atrás
pai
commit
edbf6648e8
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/pages/students/tabs/ContractTab.vue

+ 2 - 0
src/pages/students/tabs/ContractTab.vue

@@ -398,6 +398,7 @@ const openDialog = (contract = null) => {
 
 const statusColor = (status) => {
   if (status === "active") return "positive";
+  if (status === "pending") return "warning";
   if (status === "frozen") return "info";
   if (status === "cancelled") return "negative";
 
@@ -406,6 +407,7 @@ const statusColor = (status) => {
 
 const statusLabel = (status) => {
   if (status === "active") return "Ativo";
+  if (status === "pending") return "Pendente";
   if (status === "frozen") return "Trancado";
   if (status === "cancelled") return "Cancelado";