|
|
@ -20,3 +20,14 @@ export const 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"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |