feat/vaults
Tomáš Mládek 2020-09-25 20:49:30 +02:00
parent 6d17daf1b7
commit 0adbb88c33
1 changed files with 8 additions and 7 deletions

View File

@ -1,10 +1,11 @@
<template>
<div class="inspect">
<h2>
<Address :address="address"/>
<Address :address="address" :is-file="backlinks.some((e) => e.key === 'FILE_IS')"/>
</h2>
<div v-if="!error">
<h3>Own attributes</h3>
<template v-if="attributes.length">
<h3>Own attributes ({{ attributes.length }})</h3>
<table>
<tr>
<th>Key name</th>
@ -13,17 +14,16 @@
<tr v-for="entry in attributes">
<td>{{ entry.key }}</td>
<td>
<Address v-if="entry.value[0] === 'ADDR'"
:address="entry.value[1]"
link
:is-file="entry.key === 'FILE_IS'"/>
<Address link v-if="entry.value[0] === 'ADDR'" :address="entry.value[1]"/>
<template v-else>
{{ entry.value[1] }}
</template>
</td>
</tr>
</table>
<h3>Referred to</h3>
</template>
<template v-if="backlinks.length">
<h3>Referred to ({{ backlinks.length }})</h3>
<table>
<tr>
<th>Targets</th>
@ -38,6 +38,7 @@
</td>
</tr>
</table>
</template>
</div>
<div v-else class="error">
{{ error }}