Browse Source

Display cost in marker popup

master
Gautier P 2 years ago
parent
commit
89234b5c5b
  1. 3
      flatisfy/web/js_src/store/getters.js
  2. 2
      flatisfy/web/js_src/views/details.vue

3
flatisfy/web/js_src/store/getters.js

@ -42,9 +42,10 @@ export default { @@ -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': '<a href="' + href + '">' + flat.title + '</a>',
'content': '<a href="' + href + '">' + flat.title + '</a>' + cost,
'gps': gps
})
}

2
flatisfy/web/js_src/views/details.vue

@ -117,7 +117,7 @@ @@ -117,7 +117,7 @@
<h3>{{ $t("flatsDetails.Notes") }}</h3>
<form v-on:submit="updateFlatNotes">
<textarea ref="notesTextarea" rows="10">{{ flat.notes }}</textarea>
<textarea ref="notesTextarea" rows="10" :v-model="flat.notes"></textarea>
<p class="right"><input type="submit" :value="$t('flatsDetails.Save')"/></p>
</form>
</div>

Loading…
Cancel
Save