From fc23ffc89f7c2b6ede89c6a2a620053a6adbd844 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 3 Mar 2022 10:57:59 +0900 Subject: [PATCH 1/3] Move the import button to the left --- frontend/pages/projects/_id/upload/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/pages/projects/_id/upload/index.vue b/frontend/pages/projects/_id/upload/index.vue index ca9b1c7f..37c5148d 100644 --- a/frontend/pages/projects/_id/upload/index.vue +++ b/frontend/pages/projects/_id/upload/index.vue @@ -81,9 +81,8 @@ > - From 1eec4b9c624a61b795fc25a5852a16439163992a Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 3 Mar 2022 11:10:37 +0900 Subject: [PATCH 2/3] Move the dataset import page to the dataset directory --- .../projects/_id/{upload/index.vue => dataset/import.vue} | 0 frontend/pages/projects/_id/dataset/index.vue | 5 +---- 2 files changed, 1 insertion(+), 4 deletions(-) rename frontend/pages/projects/_id/{upload/index.vue => dataset/import.vue} (100%) diff --git a/frontend/pages/projects/_id/upload/index.vue b/frontend/pages/projects/_id/dataset/import.vue similarity index 100% rename from frontend/pages/projects/_id/upload/index.vue rename to frontend/pages/projects/_id/dataset/import.vue diff --git a/frontend/pages/projects/_id/dataset/index.vue b/frontend/pages/projects/_id/dataset/index.vue index 11650dad..d29bc224 100644 --- a/frontend/pages/projects/_id/dataset/index.vue +++ b/frontend/pages/projects/_id/dataset/index.vue @@ -2,7 +2,7 @@ Date: Thu, 3 Mar 2022 11:29:40 +0900 Subject: [PATCH 3/3] 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)