Display cost in marker popup

This commit is contained in:
Gautier P 2021-01-18 10:40:47 +01:00
parent 395a8ba72b
commit 89234b5c5b
2 changed files with 3 additions and 2 deletions

View File

@ -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
})
}

View File

@ -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>