added place.latitude and place.longitude, fix routes

This commit is contained in:
sedum
2022-09-19 05:13:57 +02:00
parent 838d1988ad
commit 0fb39b2c07
12 changed files with 168 additions and 118 deletions

View File

@@ -135,7 +135,7 @@ export default {
valid: false,
openImportDialog: false,
event: {
place: { name: '', address: '', details: {} },
place: { name: '', address: '', latitude: null, longitude: null },
title: '',
description: '',
tags: [],
@@ -214,7 +214,8 @@ export default {
}
formData.append('place_name', this.event.place.name)
formData.append('place_address', this.event.place.address)
formData.append('place_details', this.event.place.details)
formData.append('place_latitude', this.event.place.latitude)
formData.append('place_longitude', this.event.place.longitude)
formData.append('description', this.event.description)
formData.append('multidate', !!this.date.multidate)
formData.append('start_datetime', dayjs(this.date.from).unix())

View File

@@ -35,8 +35,7 @@ v-container#event.pa-0.pa-sm-2
v-btn.mt-2(small v-text="$t('common.show_map')" :aria-label="$t('common.show_map')" @click="mapModal = true")
v-dialog(v-model='mapModal' :fullscreen='$vuetify.breakpoint.xsOnly' destroy-on-close)
v-card
client-only(placeholder='Loading...' )
Map(:event='event')
Map(:event='event')
//- tags, hashtags
v-card-text.pt-0(v-if='event.tags && event.tags.length')