From 7999117265a4f51d0aec21a6d34438578fadd66e Mon Sep 17 00:00:00 2001 From: lefuturiste Date: Thu, 30 Jul 2020 14:46:28 +0200 Subject: [PATCH] fix: import csv --- src/views/Admin/OrganizationList.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/Admin/OrganizationList.vue b/src/views/Admin/OrganizationList.vue index 1f58232..58f1147 100644 --- a/src/views/Admin/OrganizationList.vue +++ b/src/views/Admin/OrganizationList.vue @@ -377,7 +377,7 @@ { + data = data.trim() this.$apitator.post('/admin/organizations/import', { data }, { withAuth: true }).then(() => { - this.approveModal = false + this.importModal = false this.importLoading = false + this.fetchData() this.$store.commit('ADD_ALERT', { color: 'success', text: 'Importation réussite, une grande aventure commence...' @@ -769,7 +771,6 @@ export default { }) } if (this.importData.length > 0) { - console.log('use str') exec(this.importData) } else { const reader = new FileReader()