From fd0ca3b29d7c49680608f162995c115e93cf0f9e Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 22 Feb 2022 15:07:40 +0100 Subject: [PATCH] =?UTF-8?q?style=20adjustment=20+=20if=20contact=20display?= =?UTF-8?q?=20qualit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_components/Entity/ThirdPartyRenderBox.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 6b2ba3218..78253b43f 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue @@ -124,13 +124,17 @@ export default { return !(this.thirdparty.parent === null || this.thirdparty.parent === undefined); }, getProfession() { - let profession = [] - - if (this.thirdparty.category) { - profession = this.thirdparty.category.map((category) => category.text); + if (this.hasParent) { + console.log('im here') + let profession = [] + profession.push(this.thirdparty.profession.name.fr) + return profession; + } + + if (!this.hasParent && this.thirdparty.category) { + return this.thirdparty.category.map((category) => category.text); } - return profession } /* TODO need backend normalizer to serve children without circular reference hasChildren() { @@ -154,7 +158,7 @@ export default { .list-item { &::after { - content: "|"; + content: " | "; } &:last-child::after { content: ""