Skip to content
Snippets Groups Projects
Commit c3323f01 authored by CaTasTrOOf's avatar CaTasTrOOf
Browse files

Fix bug displaying date in future exits

parent c2094578
No related branches found
No related tags found
No related merge requests found
......@@ -66,11 +66,7 @@
class="d-none d-sm-table-cell"
v-if="displayDate"
@click="redirect(member.hash)">
<BadgeDate
:date="
Math.min(member.limitDate, member.received_certifications.limit)
"
styleDate="long" />
<BadgeDate :date="date(member)" styleDate="long" />
</td>
<td class="py-1 text-center" :title="$t('favoris.supprimer')">
<button
......@@ -111,6 +107,10 @@ export default {
displayDate: {
type: Boolean,
default: true
},
adhesion: {
type: Boolean,
default: false
}
},
methods: {
......@@ -124,6 +124,10 @@ export default {
this.currentSortDir = this.currentSortDir === "asc" ? "desc" : "asc"
}
this.currentSort = s
},
date(member) {
if (this.adhesion) return member.limitDate
return member.received_certifications.limit
}
},
computed: {
......
......@@ -44,7 +44,8 @@
<h2 class="h4 text-danger text-center">{{ $t("statut.renew") }}</h2>
<MemberList
:members="wwResult['membership']"
:displayPubkey="false" />
:displayPubkey="false"
:adhesion="true" />
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment