From aac6b63e0a4a2743cebd766df2899231e8b200f4 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 13 Jun 2017 16:55:58 +0200 Subject: [PATCH] Use simple anchors for flat details; --- flatisfy/web/js_src/components/flatstable.vue | 41 +++++++++++-------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/flatisfy/web/js_src/components/flatstable.vue b/flatisfy/web/js_src/components/flatstable.vue index 056225c..6830a76 100644 --- a/flatisfy/web/js_src/components/flatstable.vue +++ b/flatisfy/web/js_src/components/flatstable.vue @@ -41,28 +41,30 @@ - + - + + - [{{ flat.id.split("@")[1] }}] {{ flat.title }} + [{{ flat.id.split("@")[1] }}] {{ flat.title }} - + - + + {{ flat.area }} m² @@ -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; +}