Use simple anchors for flat details;
This commit is contained in:
parent
6ed484bb8b
commit
aac6b63e0a
@ -41,13 +41,14 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="flat in sortedFlats" :key="flat.id" v-on:click="event => showMore(event, flat.id)" class="pointer">
|
||||
<tr v-for="flat in sortedFlats" :key="flat.id">
|
||||
<td v-if="showNotationColumn">
|
||||
<template v-for="n in range(flat.notation)">
|
||||
<i class="fa fa-star" aria-hidden="true" :title="capitalize($t('status.followed'))"></i>
|
||||
</template>
|
||||
</td>
|
||||
<td>
|
||||
<a class="fill" :href="makeDetailsUrl(flat.id)">
|
||||
<template v-if="!showNotationColumn" v-for="n in range(flat.notation)">
|
||||
<i class="fa fa-star" aria-hidden="true" :title="capitalize($t('status.followed'))"></i>
|
||||
</template>
|
||||
@ -63,6 +64,7 @@
|
||||
<br/>
|
||||
<pre>{{ flat.notes }}</pre>
|
||||
</template>
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ flat.area }} m²</td>
|
||||
<td>
|
||||
@ -169,10 +171,8 @@ export default {
|
||||
this.sortBy = field
|
||||
}
|
||||
},
|
||||
showMore (event, flatId) {
|
||||
if (event.target.tagName === 'TD') {
|
||||
this.$router.push({ name: 'details', params: { id: flatId }})
|
||||
}
|
||||
makeDetailsUrl(flatId) {
|
||||
return `/#/flat/${flatId}`;
|
||||
},
|
||||
capitalize: capitalize,
|
||||
range: range
|
||||
@ -217,4 +217,11 @@ pre {
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.fill {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user