mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
commit
2f08cd5d95
@ -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'))]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user