conditional display online locations in event/_slug.vue and minor
This commit is contained in:
@@ -27,7 +27,7 @@ v-row.mb-4
|
|||||||
v-row.mx-0.my-0.align-center.justify-center
|
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'"
|
v-combobox.mr-4(v-model="virtualLocations" v-if="settings.allow_event_only_online && value.name === 'online'"
|
||||||
:prepend-icon='mdiLink'
|
: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')"
|
:label="$t('event.online_event_urls')"
|
||||||
clearable chips small-chips multiple deletable-chips hide-no-data hide-selected persistent-hint
|
clearable chips small-chips multiple deletable-chips hide-no-data hide-selected persistent-hint
|
||||||
:delimiters="[',', ';', '; ']"
|
:delimiters="[',', ';', '; ']"
|
||||||
|
|||||||
@@ -194,7 +194,8 @@
|
|||||||
"additional_online_locations_help": "Online locations, for instance a url to a videconference room",
|
"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_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": "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": {
|
"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.",
|
"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.",
|
||||||
|
|||||||
@@ -37,15 +37,15 @@ v-container#event.pa-0.pa-sm-2
|
|||||||
outlined :key='tag' :to='`/tag/${encodeURIComponent(tag)}`') {{tag}}
|
outlined :key='tag' :to='`/tag/${encodeURIComponent(tag)}`') {{tag}}
|
||||||
|
|
||||||
//- online events
|
//- online events
|
||||||
v-divider(v-if='event.locations && event.locations.length')
|
v-divider(v-if='onlineSectionEnabled && event.locations && event.locations.length')
|
||||||
v-card(v-if='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-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(target='_blank' :href='`${event.locations[0]}`')
|
||||||
v-list-item-icon
|
v-list-item-icon
|
||||||
v-icon.my-auto(v-text='mdiMonitorAccount')
|
v-icon.my-auto(v-text='mdiMonitorAccount')
|
||||||
v-list-item-content.py-0
|
v-list-item-content.py-0
|
||||||
v-text(small label v-text='`${event.locations[0]}`' outlined color='primary')
|
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-card-text.text-caption.pt-0.pb-0(v-text="$t('event.online_event_fallback_urls')")
|
||||||
v-list-item
|
v-list-item
|
||||||
v-list-item-content
|
v-list-item-content
|
||||||
@@ -207,7 +207,7 @@ export default {
|
|||||||
error({ statusCode: 404, message: 'Event not found' })
|
error({ statusCode: 404, message: 'Event not found' })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data ({$store}) {
|
||||||
return {
|
return {
|
||||||
mdiArrowLeft, mdiArrowRight, mdiDotsVertical, mdiCodeTags, mdiCalendarExport, mdiCalendar, mdiFileDownloadOutline,
|
mdiArrowLeft, mdiArrowRight, mdiDotsVertical, mdiCodeTags, mdiCalendarExport, mdiCalendar, mdiFileDownloadOutline,
|
||||||
mdiMapMarker, mdiContentCopy, mdiClose, mdiDelete, mdiEye, mdiEyeOff, mdiRepeat, mdiLock, mdiMap, mdiChevronUp, mdiMonitorAccount,
|
mdiMapMarker, mdiContentCopy, mdiClose, mdiDelete, mdiEye, mdiEyeOff, mdiRepeat, mdiLock, mdiMap, mdiChevronUp, mdiMonitorAccount,
|
||||||
@@ -217,7 +217,8 @@ export default {
|
|||||||
showEmbed: false,
|
showEmbed: false,
|
||||||
showResources: false,
|
showResources: false,
|
||||||
selectedResource: { data: { attachment: [] } },
|
selectedResource: { data: { attachment: [] } },
|
||||||
mapModal: false
|
mapModal: false,
|
||||||
|
onlineSectionEnabled: $store.state.settings.allow_event_only_online || $store.state.settings.allow_event_also_online
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
|
|||||||
Reference in New Issue
Block a user