diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue
index fa1638b1c..b422ba23d 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue
@@ -37,9 +37,9 @@
@@ -76,10 +76,7 @@ export default {
data() {
return {
addAddress: {
- type: 'accompanying_course_location',
options: {
- /// Options override default.
- /// null value take default component value
button: {
text: {
create: 'courselocation.add_temporary_address',
@@ -90,12 +87,6 @@ export default {
create: 'courselocation.add_temporary_address',
edit: 'courselocation.edit_temporary_address'
},
- /// Display each step in page or Modal
- openPanesInModal: true,
- // Use Date fields
- //useDate: {
- // validFrom: true
- //},
hideAddress: true
}
}
@@ -109,6 +100,13 @@ export default {
...mapGetters([
'isLocationValid'
]),
+ options() {
+ return this.addAddress.options;
+ },
+ key() {
+ return (this.context.edit) ? 'address_' + this.context.addressId
+ : this.accompanyingCourse.type + '_' + this.accompanyingCourse.id ;
+ },
isTemporaryAddress() {
return this.accompanyingCourse.locationStatus === 'address';
},