forked from platypush/platypush
Include entity data
attributes in the entity info modal
This commit is contained in:
parent
c7970842d7
commit
b16af0a97f
1 changed files with 7 additions and 0 deletions
|
@ -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)" />
|
||||||
|
|
Loading…
Reference in a new issue