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

correcting badgeDanger for certsLimit

parent 5fd5c2c6
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,8 @@
:class="classWarning"
:title="title"
v-if="
!(
memberStatus == 'MEMBER' &&
$options.filters.dateStatus(limitDate) == 'success'
) && memberStatus != 'NEWCOMER'
$options.filters.dateStatus(limitDate) != 'success' &&
!['NEWCOMER', 'REVOKED'].includes(memberStatus)
"
><outline-exclamation-icon class="icon" />
<span class="sr-only" v-if="title">{{ title }}</span>
......@@ -29,8 +27,7 @@ export default {
classWarning() {
return {
"text-danger":
this.$options.filters.dateStatus(this.limitDate) == "danger" ||
this.memberStatus == "MISSING",
this.$options.filters.dateStatus(this.limitDate) == "danger",
"text-warning":
this.$options.filters.dateStatus(this.limitDate) == "warning"
}
......
......@@ -108,7 +108,7 @@
<div class="text-truncate">{{ member.uid }}</div>
&nbsp;
<BadgeDanger
:limitDate="Math.min(member.certsLimit, member.limitDate)"
:limitDate="member.certsLimit"
:memberStatus="member.status" />
</div>
<div class="text-muted small">
......
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