From acc1d1d4d072d99bc5e78b137b494922ba3d6ad3 Mon Sep 17 00:00:00 2001 From: lesion Date: Sat, 17 Jun 2023 09:30:44 +0200 Subject: [PATCH] minor --- locales/loader.js | 2 +- pages/event/_slug.vue | 6 +++--- pages/setup/_db.vue | 2 +- server/api/controller/collection.js | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/locales/loader.js b/locales/loader.js index 4159451e..3241a8a6 100644 --- a/locales/loader.js +++ b/locales/loader.js @@ -11,4 +11,4 @@ export default async (context, locale) => { } return localeMessages -} \ No newline at end of file +} diff --git a/pages/event/_slug.vue b/pages/event/_slug.vue index c4261dae..7a4ce6c3 100644 --- a/pages/event/_slug.vue +++ b/pages/event/_slug.vue @@ -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') \ No newline at end of file + diff --git a/server/api/controller/collection.js b/server/api/controller/collection.js index cfcf0421..50030d1a 100644 --- a/server/api/controller/collection.js +++ b/server/api/controller/collection.js @@ -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 \ No newline at end of file +module.exports = collectionController