Some Vue fixes

This commit is contained in:
Jarek Jakubowski
2019-02-08 01:15:16 +01:00
parent ecdd82a1cc
commit 368e4eb4ba
2 changed files with 4 additions and 6 deletions

View File

@@ -23,14 +23,14 @@
<div
v-if="size === 'normal'"
class="listing__row--item is-thumbnail"
:style="`background-image: url(${record | image(onlyPath=true)})`"
:style="`background-image: url(${record.extras.image.path})`"
></div>
<!-- end column -->
<!-- column details -->
<div class="listing__row--item is-details">
<a :href="record.extras.editLink">record.extras.title</a>
<span>record.extras.excerpt</span>
<a :href="record.extras.editLink">{{ record.extras.title }}</a>
<span>{{ record.extras.excerpt }}</span>
</div>
<!-- end column -->

View File

@@ -10,9 +10,7 @@
<tr :key="record.id">
<td>{{ record.id }}</td>
<td>
<a :href="'edit/' + record.id">{{
record.fields[0].value.value
}}</a>
<a :href="record.extras.editLink">{{ record.extras.title }}</a>
</td>
</tr>
<!-- Maybe is better to have a component to print each row? -->