add parent in thirdpartyrenderbox.vue

This commit is contained in:
Julien Fastré 2021-10-12 17:50:32 +02:00
parent b84d0100e0
commit 01ff88074b
2 changed files with 16 additions and 2 deletions

View File

@ -13,7 +13,7 @@
</div>
<div class="tpartyparent" v-if="hasParent">
<span class="name">
{{ item.result.parent.text }}
> {{ item.result.parent.text }}
</span>
</div>
</div>

View File

@ -28,11 +28,18 @@
</div>
<div v-if="hasParent">
<span class="name tparty-parent">
> {{ thirdparty.parent.text }}
</span>
</div>
<p v-if="this.options.addInfo === true" class="moreinfo">
</p>
</div>
</div>
<div class="item-col">
<div class="float-button bottom">
<div class="box">
@ -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;
}
}
</style>