Ajout de la fonction afficherEtatDemande

develop
jboinembalome 4 years ago
parent c64889cf85
commit c397fec93c
  1. 13
      src/app/shared/api-swagger/model/etatDemande.ts

@ -19,4 +19,15 @@ export const EtatDemande = {
EnAttente: 'EnAttente' as EtatDemande, EnAttente: 'EnAttente' as EtatDemande,
Validee: 'Validee' as EtatDemande, Validee: 'Validee' as EtatDemande,
Rejetee: 'Rejetee' as EtatDemande Rejetee: 'Rejetee' as EtatDemande
}; };
export function afficherEtatDemande(etatDemande: EtatDemande) {
switch(etatDemande) {
case EtatDemande.Validee:
return "Validée";
case EtatDemande.Rejetee:
return "Rejetée";
case EtatDemande.EnAttente:
return "En attente";
}
}
Loading…
Cancel
Save