From 89234b5c5b5d9c4834b4ffbe6f084d7ee2fd4532 Mon Sep 17 00:00:00 2001 From: Gautier P Date: Mon, 18 Jan 2021 10:40:47 +0100 Subject: [PATCH] Display cost in marker popup --- flatisfy/web/js_src/store/getters.js | 3 ++- flatisfy/web/js_src/views/details.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flatisfy/web/js_src/store/getters.js b/flatisfy/web/js_src/store/getters.js index 8814c7a..b0e260e 100644 --- a/flatisfy/web/js_src/store/getters.js +++ b/flatisfy/web/js_src/store/getters.js @@ -42,9 +42,10 @@ export default { // gps[1] += (Math.random() - 0.5) / 500 } const href = router.resolve({ name: 'details', params: { id: flat.id }}).href + const cost = flat.cost ? ' ( ' + flat.cost + '€)' : '' markers.push({ 'title': '', - 'content': '' + flat.title + '', + 'content': '' + flat.title + '' + cost, 'gps': gps }) } diff --git a/flatisfy/web/js_src/views/details.vue b/flatisfy/web/js_src/views/details.vue index 1f9833d..5101ec6 100644 --- a/flatisfy/web/js_src/views/details.vue +++ b/flatisfy/web/js_src/views/details.vue @@ -117,7 +117,7 @@

{{ $t("flatsDetails.Notes") }}

- +