diff --git a/ui/src/router/views/import-drivvo.vue b/ui/src/router/views/import-drivvo.vue index fb673d2..143b2d5 100644 --- a/ui/src/router/views/import-drivvo.vue +++ b/ui/src/router/views/import-drivvo.vue @@ -68,6 +68,7 @@ export default { duration: 3000, }) this.file = null + setTimeout(() => this.$router.push({ name: 'home' }), 1000) }) .catch((ex) => { this.$buefy.toast.open({ @@ -82,7 +83,6 @@ export default { }) .finally(() => { this.tryingToCreate = false - setTimeout(() => this.$router.push({ name: 'home' }), 1000) }) }, }, diff --git a/ui/src/router/views/import-fuelly.vue b/ui/src/router/views/import-fuelly.vue index 6b9e1a6..39fedfd 100644 --- a/ui/src/router/views/import-fuelly.vue +++ b/ui/src/router/views/import-fuelly.vue @@ -58,6 +58,7 @@ export default { duration: 3000, }) this.file = null + setTimeout(() => this.$router.push({ name: 'home' }), 1000) }) .catch((ex) => { this.$buefy.toast.open({ @@ -72,7 +73,6 @@ export default { }) .finally(() => { this.tryingToCreate = false - setTimeout(() => this.$router.push({ name: 'home' }), 1000) }) }, },