Prechádzať zdrojové kódy

feat(contracts): add pending status handling

alvesantos 1 týždeň pred
rodič
commit
edbf6648e8
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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) => {
 const statusColor = (status) => {
   if (status === "active") return "positive";
   if (status === "active") return "positive";
+  if (status === "pending") return "warning";
   if (status === "frozen") return "info";
   if (status === "frozen") return "info";
   if (status === "cancelled") return "negative";
   if (status === "cancelled") return "negative";
 
 
@@ -406,6 +407,7 @@ const statusColor = (status) => {
 
 
 const statusLabel = (status) => {
 const statusLabel = (status) => {
   if (status === "active") return "Ativo";
   if (status === "active") return "Ativo";
+  if (status === "pending") return "Pendente";
   if (status === "frozen") return "Trancado";
   if (status === "frozen") return "Trancado";
   if (status === "cancelled") return "Cancelado";
   if (status === "cancelled") return "Cancelado";