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

possibility to modify the default sort memberlist

parent 331ee17a
No related branches found
No related tags found
No related merge requests found
......@@ -90,8 +90,8 @@
export default {
data() {
return {
currentSort: "uid",
currentSortDir: "asc",
currentSort: this.defaultSort,
currentSortDir: this.defaultSortDir,
pageSize: 5,
currentPage: 1
}
......@@ -117,6 +117,14 @@ export default {
adhesion: {
type: Boolean,
default: false
},
defaultSortDir: {
type: String,
default: "asc"
},
defaultSort: {
type: String,
default: "uid"
}
},
methods: {
......
......@@ -11,8 +11,11 @@
</transition>
<transition name="fade">
<MemberList
defaultSort="date_sortie"
:members="favoris"
v-if="favoris && favoris.length != 0" />
v-if="
!$apollo.queries.favoris.loading && favoris && favoris.length != 0
" />
</transition>
<transition name="fade">
<div
......
......@@ -37,12 +37,14 @@
{{ $t("statut.bientotmanquecertif") }}
</h2>
<MemberList
defaultSort="date_sortie"
:members="wwResult['outOfCerts']"
:displayPubkey="false" />
</div>
<div class="col-lg-6">
<h2 class="h4 text-danger text-center">{{ $t("statut.renew") }}</h2>
<MemberList
defaultSort="date_sortie"
:members="wwResult['membership']"
:displayPubkey="false"
:adhesion="true" />
......
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