Skip to content
Snippets Groups Projects
Commit a607f59c authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

meilleur affichage du manque de certifications

parent 6a3a836c
No related branches found
No related tags found
No related merge requests found
...@@ -10,10 +10,7 @@ ...@@ -10,10 +10,7 @@
<div class="row mt-3" v-if="idFromHash.status != 'REVOKED' && idFromHash.status != 'NEWCOMER'"> <div class="row mt-3" v-if="idFromHash.status != 'REVOKED' && idFromHash.status != 'NEWCOMER'">
<div class="col-12 col-md-6 mb-3"> <div class="col-12 col-md-6 mb-3">
<h3>Certifications reçues <h3>Certifications reçues
<span :class="{ <span :class="classWarning" v-if="($options.filters.dateStatus(idFromHash.received_certifications.limit) == 'warning') || (!idFromHash.received_certifications.limit)">
'text-danger' : $options.filters.dateStatus(idFromHash.received_certifications.limit) == 'danger',
'text-warning' : $options.filters.dateStatus(idFromHash.received_certifications.limit) == 'warning'
}" v-if="($options.filters.dateStatus(idFromHash.received_certifications.limit) == 'warning')">⚠
<span class="sr-only" v-if="$options.filters.dateStatus(idFromHash.received_certifications.limit) == 'danger'">En manque de certifications</span> <span class="sr-only" v-if="$options.filters.dateStatus(idFromHash.received_certifications.limit) == 'danger'">En manque de certifications</span>
<span class="sr-only" v-else>Bientôt en manque de certifications</span> <span class="sr-only" v-else>Bientôt en manque de certifications</span>
</span> </span>
...@@ -107,6 +104,14 @@ export default { ...@@ -107,6 +104,14 @@ export default {
}, },
}, },
}, },
computed: {
classWarning: function() {
return {
'text-danger' : !this.idFromHash.received_certifications.limit,
'text-warning' : this.$options.filters.dateStatus(this.idFromHash.received_certifications.limit) == 'warning'
}
}
},
watch: { watch: {
idFromHash: { idFromHash: {
handler(n,o) { handler(n,o) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment