Don't redirect from import page on erro

This commit is contained in:
Alf Sebastian Houge
2022-04-06 14:43:01 +02:00
parent 9ef929dbd5
commit 3322e2f6bd
2 changed files with 2 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ export default {
duration: 3000, duration: 3000,
}) })
this.file = null this.file = null
setTimeout(() => this.$router.push({ name: 'home' }), 1000)
}) })
.catch((ex) => { .catch((ex) => {
this.$buefy.toast.open({ this.$buefy.toast.open({
@@ -82,7 +83,6 @@ export default {
}) })
.finally(() => { .finally(() => {
this.tryingToCreate = false this.tryingToCreate = false
setTimeout(() => this.$router.push({ name: 'home' }), 1000)
}) })
}, },
}, },

View File

@@ -58,6 +58,7 @@ export default {
duration: 3000, duration: 3000,
}) })
this.file = null this.file = null
setTimeout(() => this.$router.push({ name: 'home' }), 1000)
}) })
.catch((ex) => { .catch((ex) => {
this.$buefy.toast.open({ this.$buefy.toast.open({
@@ -72,7 +73,6 @@ export default {
}) })
.finally(() => { .finally(() => {
this.tryingToCreate = false this.tryingToCreate = false
setTimeout(() => this.$router.push({ name: 'home' }), 1000)
}) })
}, },
}, },