Improved display of referenced properties

This commit is contained in:
Stefan Zermatten
2021-07-27 16:21:55 +02:00
parent 4a8b72f163
commit 4e2e0ca364
5 changed files with 61 additions and 27 deletions

View File

@@ -7,7 +7,14 @@
:color="model.color"
:class="selected && 'primary--text'"
/>
<div class="text-no-wrap text-truncate">
<tree-node-view
v-if="model.cache && model.cache.node && model.cache.node.type !== 'reference'"
:model="model.cache.node"
/>
<div
v-else
class="text-no-wrap text-truncate"
>
{{ model.cache.node && model.cache.node.name || title }}
</div>
</div>
@@ -15,8 +22,12 @@
<script lang="js">
import treeNodeViewMixin from '/imports/ui/properties/treeNodeViews/treeNodeViewMixin.js';
import TreeNodeView from '/imports/ui/properties/treeNodeViews/TreeNodeView.vue';
export default {
components: {
TreeNodeView,
},
mixins: [treeNodeViewMixin],
}
</script>