forgotten untyped attributes

feat/vaults
Tomáš Mládek 2021-06-19 17:59:08 +02:00
parent cec833ffc4
commit 1dbe0f7e12
1 changed files with 42 additions and 0 deletions

View File

@ -57,6 +57,48 @@
</table>
</section>
</template>
<template v-if="untypedAttributes">
<section class="untyped-attribute-list">
<h3>
<sl-icon name="question-diamond" />
Untyped attributes
</h3>
<table>
<tr>
<th></th>
<th>Attribute</th>
<th>Value</th>
</tr>
<tr v-for="[id, entry] in untypedAttributes" :key="id">
<td class="attr-action">
<sl-icon-button name="x-circle" @click="removeEntry(id)" />
</td>
<td>{{ entry.attribute }}</td>
<td>
<Address
link
v-if="entry.value.t === 'Address'"
:address="entry.value.c"
/>
<template v-else>
{{ entry.value.c }}
</template>
</td>
</tr>
<tr>
<td class="attr-action">
<sl-icon-button name="plus-circle" @click="addEntry()" />
</td>
<td>
<sl-input v-sl-model:newEntryAttribute />
</td>
<td>
<sl-input v-sl-model:newEntryValue />
</td>
</tr>
</table>
</section>
</template>
<template v-if="backlinks.length">
<section class="backlinks">
<h3>Referred to ({{ backlinks.length }})</h3>