go to event page only in case is visible
This commit is contained in:
parent
4e3a36ec0d
commit
9f639c1c33
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ export default {
|
|||
if (this.event.tags) { this.event.tags.forEach(tag => formData.append('tags[]', tag.tag || tag)) }
|
||||
try {
|
||||
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}`)
|
||||
} else {
|
||||
this.$router.push('/')
|
||||
|
|
Loading…
Reference in a new issue