go to event page only in case is visible
This commit is contained in:
@@ -260,7 +260,7 @@ export default {
|
|||||||
if (this.event.tags) { this.event.tags.forEach(tag => formData.append('tags[]', tag.tag || tag)) }
|
if (this.event.tags) { this.event.tags.forEach(tag => formData.append('tags[]', tag.tag || tag)) }
|
||||||
try {
|
try {
|
||||||
const ret = this.edit ? await this.$axios.$put('/event', formData) : await this.$axios.$post('/event', formData)
|
const ret = this.edit ? await this.$axios.$put('/event', formData) : await this.$axios.$post('/event', formData)
|
||||||
if (!this.date.recurrent) {
|
if (!this.date.recurrent && ret.is_visible) {
|
||||||
this.$router.push(`/event/${ret.slug}`)
|
this.$router.push(`/event/${ret.slug}`)
|
||||||
} else {
|
} else {
|
||||||
this.$router.push('/')
|
this.$router.push('/')
|
||||||
|
|||||||
Reference in New Issue
Block a user