forgotten untyped attributes
parent
cec833ffc4
commit
1dbe0f7e12
|
@ -57,6 +57,48 @@
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</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">
|
<template v-if="backlinks.length">
|
||||||
<section class="backlinks">
|
<section class="backlinks">
|
||||||
<h3>Referred to ({{ backlinks.length }})</h3>
|
<h3>Referred to ({{ backlinks.length }})</h3>
|
||||||
|
|
Loading…
Reference in New Issue