Display cost in marker popup
This commit is contained in:
parent
395a8ba72b
commit
89234b5c5b
@ -42,9 +42,10 @@ export default {
|
|||||||
// gps[1] += (Math.random() - 0.5) / 500
|
// gps[1] += (Math.random() - 0.5) / 500
|
||||||
}
|
}
|
||||||
const href = router.resolve({ name: 'details', params: { id: flat.id }}).href
|
const href = router.resolve({ name: 'details', params: { id: flat.id }}).href
|
||||||
|
const cost = flat.cost ? ' ( ' + flat.cost + '€)' : ''
|
||||||
markers.push({
|
markers.push({
|
||||||
'title': '',
|
'title': '',
|
||||||
'content': '<a href="' + href + '">' + flat.title + '</a>',
|
'content': '<a href="' + href + '">' + flat.title + '</a>' + cost,
|
||||||
'gps': gps
|
'gps': gps
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
<h3>{{ $t("flatsDetails.Notes") }}</h3>
|
<h3>{{ $t("flatsDetails.Notes") }}</h3>
|
||||||
|
|
||||||
<form v-on:submit="updateFlatNotes">
|
<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>
|
<p class="right"><input type="submit" :value="$t('flatsDetails.Save')"/></p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user