mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
accourse: don't display old participations
(they will be still visible in history)
This commit is contained in:
parent
93c08f7e18
commit
1a95b44577
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<div class="flex-table mb-3">
|
<div class="flex-table mb-3">
|
||||||
<participation-item
|
<participation-item
|
||||||
v-for="participation in participations"
|
v-for="participation in currentParticipations"
|
||||||
v-bind:participation="participation"
|
v-bind:participation="participation"
|
||||||
v-bind:key="participation.id"
|
v-bind:key="participation.id"
|
||||||
@remove="removeParticipation"
|
@remove="removeParticipation"
|
||||||
@ -56,10 +56,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: mapState({
|
computed: {
|
||||||
|
...mapState({
|
||||||
participations: state => state.accompanyingCourse.participations,
|
participations: state => state.accompanyingCourse.participations,
|
||||||
counter: state => state.accompanyingCourse.participations.length
|
counter: state => state.accompanyingCourse.participations.length
|
||||||
}),
|
}),
|
||||||
|
currentParticipations() {
|
||||||
|
return this.participations.filter(p => p.endDate === null)
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
removeParticipation(item) {
|
removeParticipation(item) {
|
||||||
//console.log('@@ CLICK remove participation: item', item);
|
//console.log('@@ CLICK remove participation: item', item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user