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

set dateStatus filter limit to 1 month

parent 0d6a4cd5
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<tr v-if="hash.status != 'NEWCOMER'"> <tr v-if="hash.status != 'NEWCOMER'">
<th scope="row">Distance :</th> <th scope="row">Distance :</th>
<td :class="{ <td :class="{
'list-group-item-success': hash.distance.value.ratio >= 80, 'list-group-item-success': hash.distance.dist_ok,
'list-group-item-danger': hash.distance.value.ratio < 80, 'list-group-item-danger': !hash.distance.dist_ok,
}">{{ Math.round(hash.distance.value.ratio*100)/100 }}</td> }">{{ Math.round(hash.distance.value.ratio*100)/100 }}</td>
</tr> </tr>
<tr> <tr>
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
<MemberCard :hash="idFromHash" /> <MemberCard :hash="idFromHash" />
</div> </div>
</div> </div>
<div class="row mt-3" v-if="idFromHash.status != 'REVOKED' && idFromHash.status != 'NEWCOMER'"> <div class="row mt-3" v-if="idFromHash.status != 'REVOKED'">
<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="classWarning" v-if="($options.filters.dateStatus(idFromHash.received_certifications.limit) == 'warning') || (!idFromHash.received_certifications.limit)"> <span :class="classWarning" v-if="(($options.filters.dateStatus(idFromHash.received_certifications.limit) == 'warning') || (!idFromHash.received_certifications.limit)) && idFromHash.status != 'NEWCOMER'">
<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>
......
...@@ -13,9 +13,9 @@ Vue.filter('dateStatus', (val) => { ...@@ -13,9 +13,9 @@ Vue.filter('dateStatus', (val) => {
switch (true) { switch (true) {
case diff<0: case diff<0:
return 'danger' return 'danger'
case diff<5184000: case diff<2635200:
return 'warning' return 'warning'
case diff>=5184000: case diff>=2635200:
return 'success' return 'success'
} }
}) })
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment