From d8c34c3089c11f84d349a08fe41f167e462493e2 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 29 Sep 2021 19:53:28 +0200 Subject: [PATCH] otf: thirdparty corrections --- .../vuejs/AccompanyingCourse/store/index.js | 2 +- .../Entity/ThirdPartyRenderBox.vue | 28 ++----------------- 2 files changed, 4 insertions(+), 26 deletions(-) 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 382d2c0c3..c0946f702 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -290,7 +290,7 @@ let initPromise = Promise.all([scopesPromise, accompanyingCoursePromise]) })); } else if (payload.type === 'thirdparty') { - body.name = payload.data.name; + body.name = payload.data.text; body.email = payload.data.email; body.phonenumber = payload.data.phonenumber; body.address = { address_id: payload.data.address.address_id }; diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue index eddde6a67..c2714126a 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue @@ -19,14 +19,6 @@

- - - - {{ thirdparty.age }}

@@ -42,9 +34,9 @@ -
  • +
  • - {{ thirdparty.telephone }} + {{ thirdparty.phonenumber }}
  • @@ -78,21 +70,7 @@ export default { } else { return false } - }, - getGender: function() { - return this.thirdparty.gender === 'woman' ? 'renderbox.birthday.woman' : 'renderbox.birthday.man'; - }, - getGenderIcon: function() { - return this.thirdparty.gender === 'woman' ? 'fa-venus' : this.thirdparty.gender === 'man' ? 'fa-mars' : 'fa-neuter'; - }, - birthdate: function(){ - var date = new Date(this.thirdparty.birthdate.datetime); - return dateToISO(date); - }, - deathdate: function(){ - var date = new Date(this.thirdparty.deathdate.datetime); - return dateToISO(date); - }, + } } }