diff --git a/components/WhereInput.vue b/components/WhereInput.vue index abf1625a..b27e17a1 100644 --- a/components/WhereInput.vue +++ b/components/WhereInput.vue @@ -27,7 +27,7 @@ v-row.mb-4 v-row.mx-0.my-0.align-center.justify-center v-combobox.mr-4(v-model="virtualLocations" v-if="settings.allow_event_only_online && value.name === 'online'" :prepend-icon='mdiLink' - :hint="`Online locations, for instance a url to a videconference room`" + :hint="$t('event.online_locations_help')" :label="$t('event.online_event_urls')" clearable chips small-chips multiple deletable-chips hide-no-data hide-selected persistent-hint :delimiters="[',', ';', '; ']" diff --git a/locales/en.json b/locales/en.json index d9064a6b..77a82f6b 100644 --- a/locales/en.json +++ b/locales/en.json @@ -194,7 +194,8 @@ "additional_online_locations_help": "Online locations, for instance a url to a videconference room", "address_geocoded_disclaimer": "Didn't you found the address or housenumber you are looking for? The OpenStreetMap project is open to contributions. If you have Android, we recommend StreetComplete ", "address_overwrite": "Overwrite Address", - "address_overwrite_help": "Overwrite the geocoded address, for instance to add missing housenumber or a floor information" + "address_overwrite_help": "Overwrite the geocoded address, for instance to add missing housenumber or a floor information", + "online_locations_help": "Online locations, for instance a url to a videconference room" }, "admin": { "place_description": "If you have gotten the place or address wrong, you can change it.
All current and past events associated with this place will change address.", diff --git a/pages/event/_slug.vue b/pages/event/_slug.vue index 99ea6df0..559c78c3 100644 --- a/pages/event/_slug.vue +++ b/pages/event/_slug.vue @@ -37,15 +37,15 @@ v-container#event.pa-0.pa-sm-2 outlined :key='tag' :to='`/tag/${encodeURIComponent(tag)}`') {{tag}} //- online events - v-divider(v-if='event.locations && event.locations.length') - v-card(v-if='event.locations && event.locations.length') + v-divider(v-if='onlineSectionEnabled && event.locations && event.locations.length') + v-card(v-if='onlineSectionEnabled && event.locations && event.locations.length') v-card-text.text-caption.pb-0(v-text="event.place.name === 'online' && $t('event.online_event_only') || $t('event.online_event_too') ") v-list-item(target='_blank' :href='`${event.locations[0]}`') v-list-item-icon v-icon.my-auto(v-text='mdiMonitorAccount') v-list-item-content.py-0 v-text(small label v-text='`${event.locations[0]}`' outlined color='primary') - v-card.pb-2(v-if='event.locations.length > 1') + v-card.pb-2(v-if='onlineSectionEnabled && event.locations && event.locations.length > 1') v-card-text.text-caption.pt-0.pb-0(v-text="$t('event.online_event_fallback_urls')") v-list-item v-list-item-content @@ -207,7 +207,7 @@ export default { error({ statusCode: 404, message: 'Event not found' }) } }, - data () { + data ({$store}) { return { mdiArrowLeft, mdiArrowRight, mdiDotsVertical, mdiCodeTags, mdiCalendarExport, mdiCalendar, mdiFileDownloadOutline, mdiMapMarker, mdiContentCopy, mdiClose, mdiDelete, mdiEye, mdiEyeOff, mdiRepeat, mdiLock, mdiMap, mdiChevronUp, mdiMonitorAccount, @@ -217,7 +217,8 @@ export default { showEmbed: false, showResources: false, selectedResource: { data: { attachment: [] } }, - mapModal: false + mapModal: false, + onlineSectionEnabled: $store.state.settings.allow_event_only_online || $store.state.settings.allow_event_also_online } }, head () {