detailsview: show card in cards (for now)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2019-10-11 02:25:25 +05:30
parent 7ddeac9001
commit 748c3b953c
2 changed files with 11 additions and 1 deletions

View File

@ -12,6 +12,13 @@
title="Details"
:bordered="true"
>
<a-card-grid
style="width:33.33%; textAlign:'center'"
:key="key"
v-for="(value, key) in resource"
v-if="key !== 'key' && key !== 'tags'">
<strong>{{ key }}</strong><br/>{{ value }}
</a-card-grid>
</a-card>
<a-card
style="width:100%; margin-top: 12px"

View File

@ -88,7 +88,7 @@
</div>
</div>
<div class="account-center-tags" v-if="resourceType">
<div class="account-center-tags">
<a-divider/>
<div class="tagsTitle">Tags</div>
<div>
@ -210,6 +210,9 @@ export default {
this.resource = newItem
this.getTags()
this.getNotes()
if ('tags' in this.resource) {
this.tags = this.resource.tags
}
}
},
methods: {