This commit is contained in:
les
2021-01-22 21:16:22 +01:00
parent a4148f139c
commit a6a465d1d0
8 changed files with 1319 additions and 1664 deletions

View File

@@ -178,8 +178,10 @@ export default {
await this.$axios.$post('/event', formData)
}
this.updateMeta()
this.$router.replace('/')
this.$root.$message(this.$auth.loggedIn ? 'event.added' : 'event.added_anon', { color: 'success' })
this.$router.push('/')
this.$nextTick(() => {
this.$root.$message(this.$auth.loggedIn ? 'event.added' : 'event.added_anon', { color: 'success' })
})
} catch (e) {
switch (e.request.status) {
case 413: