mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
bind options and key inside AddPersons component (wip)
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
<add-persons
|
||||
buttonTitle="persons_associated.add_persons"
|
||||
v-bind:key="addNewPersons.key"
|
||||
v-bind:options="addNewPersons.options"
|
||||
@addNewPersons="addNewPersons">
|
||||
</add-persons>
|
||||
|
||||
@@ -42,6 +44,18 @@ export default {
|
||||
PersonItem,
|
||||
AddPersons
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
addNewPersons: {
|
||||
key: 'persons_associated',
|
||||
options: {
|
||||
type: ['person'],
|
||||
priority: null,
|
||||
uniq: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: mapState({
|
||||
participations: state => state.accompanyingCourse.participations,
|
||||
counter: state => state.accompanyingCourse.participations.length
|
||||
|
@@ -40,6 +40,8 @@
|
||||
|
||||
<add-persons
|
||||
buttonTitle="requestor.add_requestor"
|
||||
v-bind:key="addNewPersons.key"
|
||||
v-bind:options="addNewPersons.options"
|
||||
@addNewPersons="addNewPersons">
|
||||
</add-persons>
|
||||
|
||||
@@ -56,6 +58,14 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
addNewPersons: {
|
||||
key: 'requestor',
|
||||
options: {
|
||||
type: ['person', 'thirdparty'],
|
||||
priority: null,
|
||||
uniq: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
Reference in New Issue
Block a user