mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
Merge branch 'issue415_filter_suggested_entities_by_close_participations' into 'master'
accompanying course: filter suggested entities by open participations See merge request Chill-Projet/chill-bundles!339
This commit is contained in:
commit
672fa48140
@ -9,7 +9,7 @@ and this project adheres to
|
|||||||
* date versioning for test releases
|
* date versioning for test releases
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
* [person] accompanying course: filter suggested entities by open participations (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/415)
|
||||||
[activity] can click through the cross icon for removing person in concerned group (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476)
|
[activity] can click through the cross icon for removing person in concerned group (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476)
|
||||||
[activity] correct associated persons by considering only open participations (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476)
|
[activity] correct associated persons by considering only open participations (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476)
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ export default {
|
|||||||
...mapState({
|
...mapState({
|
||||||
suggestedEntities: state => {
|
suggestedEntities: state => {
|
||||||
return [
|
return [
|
||||||
...state.accompanyingCourse.participations.map(p => p.person),
|
...state.accompanyingCourse.participations.filter((p) => p.endDate === null).map((p) => p.person),
|
||||||
...state.accompanyingCourse.resources.map(r => r.resource)
|
...state.accompanyingCourse.resources.map(r => r.resource)
|
||||||
]
|
]
|
||||||
.filter((e) => e !== null)
|
.filter((e) => e !== null)
|
||||||
|
@ -77,7 +77,7 @@ export default {
|
|||||||
counter: state => state.accompanyingCourse.resources.length,
|
counter: state => state.accompanyingCourse.resources.length,
|
||||||
suggestedEntities: state => [
|
suggestedEntities: state => [
|
||||||
state.accompanyingCourse.requestor,
|
state.accompanyingCourse.requestor,
|
||||||
...state.accompanyingCourse.participations.map(p => p.person),
|
...state.accompanyingCourse.participations.filter((p) => p.endDate === null).map((p) => p.person),
|
||||||
]
|
]
|
||||||
.filter((e) => e !== null)
|
.filter((e) => e !== null)
|
||||||
.filter(
|
.filter(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user