style adjustment + if contact display qualité

This commit is contained in:
Julie Lenaerts 2022-02-22 15:07:40 +01:00
parent ab5bb3963b
commit fd0ca3b29d

View File

@ -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: ""