Bug 37762: Bugfix: Display relationshipSelect
Signed-off-by: Jason Robb <jrobb@sekls.org> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
8e87fae1cc
commit
87961beb4d
|
|
@ -227,10 +227,7 @@ export default {
|
|||
"</a>"
|
||||
);
|
||||
}
|
||||
return accessNestedProperty(
|
||||
attr.relationshipDisplayAttr,
|
||||
row
|
||||
);
|
||||
return accessNestedProperty(attr.name, row);
|
||||
},
|
||||
});
|
||||
return acc;
|
||||
|
|
|
|||
|
|
@ -138,6 +138,22 @@
|
|||
></component>
|
||||
</template>
|
||||
</template>
|
||||
<template v-else-if="attribute.type == 'relationshipSelect'">
|
||||
<label>{{ attribute.label }}:</label>
|
||||
<LinkWrapper
|
||||
:linkData="attribute.showElement?.link"
|
||||
:resource="resource"
|
||||
>
|
||||
<span>
|
||||
{{
|
||||
attribute?.format ||
|
||||
(attribute.value && attribute?.value.includes("."))
|
||||
? formatValue(attribute, resource)
|
||||
: resource[attribute.name]
|
||||
}}
|
||||
</span>
|
||||
</LinkWrapper>
|
||||
</template>
|
||||
<template
|
||||
v-else-if="
|
||||
attr.type == 'additional_fields' &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue