Files
DiceCloud/app/imports/client/ui/properties/viewers/SlotFillerViewer.vue
Stefan Zermatten 957aabcb82 Improved property viewers
Slot fill data included in library viewer
Breadcrumbs and children in lib view
breadcrumbs and children work on tree tab
2023-06-13 12:48:35 +02:00

36 lines
870 B
Vue

<template lang="html">
<div class="slot-filler-viewer">
<v-row dense>
<property-field
v-if="model.description"
name="Description"
:cols="{cols: 12}"
>
<markdown-text :markdown="model.description" />
</property-field>
</v-row>
</div>
</template>
<script lang="js">
import propertyViewerMixin from '/imports/client/ui/properties/viewers/shared/propertyViewerMixin.js';
import { getPropertyName } from '/imports/constants/PROPERTIES.js';
import MarkdownText from '/imports/client/ui/components/MarkdownText.vue';
export default {
components: {
MarkdownText,
},
mixins: [propertyViewerMixin],
inject: {
context: { default: {} }
},
computed: {
slotTypeName() {
if (!this.model.slotFillerType) return;
return getPropertyName(this.model.slotFillerType);
},
}
}
</script>