diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js index c0946f702..22c91b0ef 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -292,7 +292,7 @@ let initPromise = Promise.all([scopesPromise, accompanyingCoursePromise]) else if (payload.type === 'thirdparty') { body.name = payload.data.text; body.email = payload.data.email; - body.phonenumber = payload.data.phonenumber; + body.telephone = payload.data.phonenumber; body.address = { address_id: payload.data.address.address_id }; console.log('id', payload.data.id, 'and body', body); patchThirdparty(payload.data.id, body) diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue index f68b00c4c..701bf38e8 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue @@ -21,7 +21,7 @@
- +
@@ -42,12 +42,13 @@ v-bind:aria-label="$t('thirdparty.phonenumber')" aria-describedby="phonenumber" />
- + @@ -64,32 +65,44 @@ export default { ThirdPartyRenderBox, AddAddress }, - data: function() { + data() { return { thirdparty: { type: 'thirdparty' }, addAddress: { - context: { - - }, options: { - //button: { - // text: { - // create: 'courselocation.add_temporary_address', - // edit: 'courselocation.edit_temporary_address' - // } - //}, - //title: { - // create: 'courselocation.add_temporary_address', - // edit: 'courselocation.edit_temporary_address' - //}, openPanesInModal: true, - hideAddress: true + hideAddress: false, + /* + button: { + text: { + create: 'courselocation.add_temporary_address', + edit: 'courselocation.edit_temporary_address' + } + }, + title: { + create: 'courselocation.add_temporary_address', + edit: 'courselocation.edit_temporary_address' + } */ } } } }, + computed: { + context() { + let context = { + target: { + name: this.type, + id: this.id + }, + edit: false, + addressId: null + }; + console.log('context', context); + return context; + }, + }, methods: { loadData(){ getThirdparty(this.id).then(thirdparty => new Promise((resolve, reject) => {