conditional display online locations in event/_slug.vue and minor

This commit is contained in:
sedum 2023-02-19 17:59:28 +01:00
parent 3dc975465f
commit f298fe2fed
3 changed files with 9 additions and 7 deletions

View file

@ -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="[',', ';', '; ']"

View file

@ -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 <a target=\"_blank\" href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> project is open to contributions. If you have Android, we recommend <a target=\"_blank\" href=\"https://f-droid.org/en/packages/de.westnordost.streetcomplete/\">StreetComplete</a> ",
"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.<br/>All current and past events associated with this place will change address.",

View file

@ -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 () {