A click on a button in a flat row in the flats table should not trigger
a click event and go to the flat details page.
This commit is contained in:
parent
d152b4dce8
commit
6272819109
@ -41,7 +41,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="flat in sortedFlats" :key="flat.id" v-on:click="showMore(flat.id)" class="pointer">
|
<tr v-for="flat in sortedFlats" :key="flat.id" v-on:click="event => showMore(event, flat.id)" class="pointer">
|
||||||
<td v-if="showNotationColumn">
|
<td v-if="showNotationColumn">
|
||||||
<template v-for="n in range(flat.notation)">
|
<template v-for="n in range(flat.notation)">
|
||||||
<i class="fa fa-star" aria-hidden="true" :title="capitalize($t('status.followed'))"></i>
|
<i class="fa fa-star" aria-hidden="true" :title="capitalize($t('status.followed'))"></i>
|
||||||
@ -167,8 +167,10 @@ export default {
|
|||||||
this.sortBy = field
|
this.sortBy = field
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showMore (flatId) {
|
showMore (event, flatId) {
|
||||||
|
if (event.target.tagName === "TD") {
|
||||||
this.$router.push({ name: 'details', params: { id: flatId }})
|
this.$router.push({ name: 'details', params: { id: flatId }})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
capitalize: capitalize,
|
capitalize: capitalize,
|
||||||
range: range
|
range: range
|
||||||
|
Loading…
Reference in New Issue
Block a user