From a94a757ae63218cde9f0a4e57d282ea94131b954 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 6 Sep 2021 16:50:10 +0200 Subject: [PATCH] accourse: don't display old participations (fix counter) --- .../Resources/public/chill/scss/flex_table.scss | 2 +- .../AccompanyingCourse/components/PersonsAssociated.vue | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss index c25285da1..2b9e4e671 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss @@ -277,7 +277,7 @@ div.floatbutton { div.action { padding: 0 0 1em 1em; } - + // avoid a position relative that make links unclickable .fa-ul > li { position: initial; diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue index edde7fbdb..37833ef29 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue @@ -2,7 +2,7 @@

{{ $t('persons_associated.title')}}

-
+
@@ -58,11 +58,13 @@ export default { }, computed: { ...mapState({ - participations: state => state.accompanyingCourse.participations, - counter: state => state.accompanyingCourse.participations.length + participations: state => state.accompanyingCourse.participations }), currentParticipations() { return this.participations.filter(p => p.endDate === null) + }, + counter() { + return this.currentParticipations.length; } }, methods: {