This commit is contained in:
lesion 2023-06-17 09:30:44 +02:00
parent 09d75aad6c
commit acc1d1d4d0
No known key found for this signature in database
GPG key ID: 352918250B012177
4 changed files with 8 additions and 8 deletions

View file

@ -11,4 +11,4 @@ export default async (context, locale) => {
}
return localeMessages
}
}

View file

@ -70,7 +70,7 @@ v-container#event.h-event.pa-2.pa-sm-2(v-touch="{ left: goNext, right: goPrev }"
v-icon(v-text='mdiCodeTags')
v-list-item-content
v-list-item-title(v-text="$t('common.embed')")
//- calendar
v-list-item(:href='`/api/event/detail/${event.slug || event.id}.ics`')
v-list-item-icon
@ -175,9 +175,9 @@ v-container#event.h-event.pa-2.pa-sm-2(v-touch="{ left: goNext, right: goPrev }"
v-dialog(v-model='showEmbed' width='700px' :fullscreen='$vuetify.breakpoint.xsOnly')
EmbedEvent(:event='event' @close='showEmbed=false')
v-dialog(v-show='settings.allow_geolocation && event.place.latitude && event.place.longitude' v-model='mapModal' :fullscreen='$vuetify.breakpoint.xsOnly' destroy-on-close)
EventMapDialog(:place='event.place' @close='mapModal=false')
EventMapDialog(:place='event.place' @close='mapModal=false')
</template>
<script>

View file

@ -62,4 +62,4 @@ export default {
}
}
}
</script>
</script>

View file

@ -131,11 +131,11 @@ const collectionController = {
const collectionId = req.params.collection_id
const filters = await Filter.findAll({ where: { collectionId } })
return res.json(filters)
},
},
async addFilter (req, res) {
const { collectionId, tags, places } = req.body
try {
filter = await Filter.create({ collectionId, tags, places })
return res.json(filter)
@ -165,4 +165,4 @@ const collectionController = {
}
module.exports = collectionController
module.exports = collectionController