mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
person: init suggested entities in accompanying course
This commit is contained in:
parent
69e260f0b1
commit
44a09903a0
@ -47,6 +47,17 @@
|
||||
</participation-item>
|
||||
</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>
|
||||
<add-persons
|
||||
buttonTitle="persons_associated.add_persons"
|
||||
@ -90,7 +101,8 @@ export default {
|
||||
computed: {
|
||||
...mapState({
|
||||
courseId: state => state.accompanyingCourse.id,
|
||||
participations: state => state.accompanyingCourse.participations
|
||||
participations: state => state.accompanyingCourse.participations,
|
||||
suggestedEntities: state => [state.accompanyingCourse.requestor, ...state.accompanyingCourse.resources]
|
||||
}),
|
||||
...mapGetters([
|
||||
'isParticipationValid'
|
||||
|
Loading…
x
Reference in New Issue
Block a user