From 02ff753cb59fb764af366cc41ce44c9105acce86 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 3 Mar 2022 11:29:40 +0900 Subject: [PATCH] Move the dataset page after successful import --- frontend/pages/projects/_id/dataset/import.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/pages/projects/_id/dataset/import.vue b/frontend/pages/projects/_id/dataset/import.vue index 37c5148d..05921b65 100644 --- a/frontend/pages/projects/_id/dataset/import.vue +++ b/frontend/pages/projects/_id/dataset/import.vue @@ -59,8 +59,8 @@ :accepted-file-types="acceptedFileTypes" :server="server" :files="myFiles" - @processfile="handleFilePondProcessfile" - @removefile="handleFilePondRemovefile" + @processfile="handleFilePondProcessFile" + @removefile="handleFilePondRemoveFile" /> item.id === file.id) if (index > -1) { @@ -251,6 +251,9 @@ export default { this.myFiles = [] this.uploadedFiles = [] this.isImporting = false + if (this.errors.length === 0) { + this.$router.push(`/projects/${this.$route.params.id}/dataset`) + } } } }, 3000)