From cb20245c6d351c39e896205f996f51cdbbae5e44 Mon Sep 17 00:00:00 2001
From: "jakob.dieterle" <jakob.dieterle@stud.uni-goettingen.de>
Date: Wed, 27 Apr 2022 12:35:36 +0200
Subject: [PATCH] diable import button and close dialog on succesful import

---
 frontend/src/components/ImportDialog.vue | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/frontend/src/components/ImportDialog.vue b/frontend/src/components/ImportDialog.vue
index ef9aeddb..dce2c067 100644
--- a/frontend/src/components/ImportDialog.vue
+++ b/frontend/src/components/ImportDialog.vue
@@ -28,6 +28,7 @@
         <v-btn
           id="submit-import"
           :loading="loading"
+          :disabled="!hektorFile"
           @click="submitData"
         >
           Import
@@ -88,6 +89,7 @@
           })
         } finally {
           this.loading = false
+          this.show = false
         }
       },
       readFile() {
-- 
GitLab