From 01ff88074b526346e8da0d21fa2ebf9d9be50d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 12 Oct 2021 17:50:32 +0200 Subject: [PATCH] add parent in thirdpartyrenderbox.vue --- .../_components/AddPersons/TypeThirdParty.vue | 2 +- .../_components/Entity/ThirdPartyRenderBox.vue | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue index c68587ed9..de24c6fbf 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue @@ -13,7 +13,7 @@
- {{ item.result.parent.text }} + > {{ item.result.parent.text }}
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 3ef941c02..8b8fc6449 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue @@ -28,11 +28,18 @@ +
+ + > {{ thirdparty.parent.text }} + +
+

+
@@ -87,11 +94,14 @@ export default { props: ['thirdparty', 'options'], computed: { isMultiline: function() { - if(this.options.isMultiline){ + if (this.options.isMultiline){ return this.options.isMultiline } else { return false } + }, + hasParent() { + return !(this.$props.thirdparty.parent === null || this.$props.thirdparty.parent === undefined); } } } @@ -102,6 +112,10 @@ export default { &:before{ content: " " } + &.tparty-parent { + font-weight: bold; + font-variant: all-small-caps; + } }