mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
person: init suggested entities in accompanying course
This commit is contained in:
parent
69e260f0b1
commit
44a09903a0
@ -47,6 +47,17 @@
|
|||||||
</participation-item>
|
</participation-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="list-suggest add-items">
|
||||||
|
<li v-for="p in suggestedEntities" @click="addSuggestedEntity(p)">
|
||||||
|
<span class="badge bg-primary" style="cursor: pointer;">
|
||||||
|
<i class="fa fa-plus fa-fw text-success"></i>
|
||||||
|
{{ p.text }}
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<add-persons
|
<add-persons
|
||||||
buttonTitle="persons_associated.add_persons"
|
buttonTitle="persons_associated.add_persons"
|
||||||
@ -90,7 +101,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
courseId: state => state.accompanyingCourse.id,
|
courseId: state => state.accompanyingCourse.id,
|
||||||
participations: state => state.accompanyingCourse.participations
|
participations: state => state.accompanyingCourse.participations,
|
||||||
|
suggestedEntities: state => [state.accompanyingCourse.requestor, ...state.accompanyingCourse.resources]
|
||||||
}),
|
}),
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
'isParticipationValid'
|
'isParticipationValid'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user