From 9ef929dbd57a0ceb35620166b12f3cda3cc76d39 Mon Sep 17 00:00:00 2001 From: Alf Sebastian Houge Date: Wed, 6 Apr 2022 12:16:14 +0200 Subject: [PATCH] Redirect to home after importing --- ui/src/router/views/import-drivvo.vue | 1 + ui/src/router/views/import-fuelly.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/src/router/views/import-drivvo.vue b/ui/src/router/views/import-drivvo.vue index a1363d1..fb673d2 100644 --- a/ui/src/router/views/import-drivvo.vue +++ b/ui/src/router/views/import-drivvo.vue @@ -82,6 +82,7 @@ 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 76d9e03..6b9e1a6 100644 --- a/ui/src/router/views/import-fuelly.vue +++ b/ui/src/router/views/import-fuelly.vue @@ -72,6 +72,7 @@ export default { }) .finally(() => { this.tryingToCreate = false + setTimeout(() => this.$router.push({ name: 'home' }), 1000) }) }, },