diff --git a/frontend/pages/projects/_id/upload/index.vue b/frontend/pages/projects/_id/dataset/import.vue
similarity index 93%
rename from frontend/pages/projects/_id/upload/index.vue
rename to frontend/pages/projects/_id/dataset/import.vue
index ca9b1c7f..05921b65 100644
--- a/frontend/pages/projects/_id/upload/index.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"
/>
-
@@ -220,12 +219,12 @@ export default {
},
methods: {
- handleFilePondProcessfile(error, file) {
+ handleFilePondProcessFile(error, file) {
console.log(error)
this.uploadedFiles.push(file)
this.$nextTick()
},
- handleFilePondRemovefile(error, file) {
+ handleFilePondRemoveFile(error, file) {
console.log(error)
const index = this.uploadedFiles.findIndex(item => item.id === file.id)
if (index > -1) {
@@ -252,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)
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 @@