Merge branch 'merge-6336-into-6339-optimize-event-create-and-update' of github.com:Ocelot-Social-Community/Ocelot-Social into 6379-fix-event-teaser-date-from-start-to-end

This commit is contained in:
Wolfgang Huß 2023-06-07 20:13:16 +02:00
commit 2f08cd5d95

View File

@ -291,6 +291,7 @@ export default {
min: 3,
max: 100,
validator: (_, value = '') => {
if (!this.createEvent) return []
if (!value.trim()) {
return [new Error(this.$t('common.validations.eventVenueNotEmpty'))]
}
@ -307,6 +308,7 @@ export default {
min: 3,
max: 100,
validator: (_, value = '') => {
if (!this.createEvent) return []
if (this.formData.eventIsOnline) return []
if (!value.trim()) {
return [new Error(this.$t('common.validations.eventLocationNameNotEmpty'))]