Include entity data attributes in the entity info modal

This commit is contained in:
Fabio Manganiello 2022-04-30 16:39:37 +02:00
parent c7970842d7
commit b16af0a97f
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -76,6 +76,13 @@
<div class="value" v-text="entity.description" /> <div class="value" v-text="entity.description" />
</div> </div>
<div v-for="value, attr in entity.data || {}" :key="attr">
<div class="table-row" v-if="value != null">
<div class="title" v-text="attr" />
<div class="value" v-text="'' + value" />
</div>
</div>
<div class="table-row" v-if="entity.created_at"> <div class="table-row" v-if="entity.created_at">
<div class="title">Created at</div> <div class="title">Created at</div>
<div class="value" v-text="formatDateTime(entity.created_at)" /> <div class="value" v-text="formatDateTime(entity.created_at)" />