From 3e38be1a790f6a4263a066df3a23609cd7b9cbee Mon Sep 17 00:00:00 2001
From: Kirill Stytsenko <kirill@styts.com>
Date: Mon, 6 Dec 2021 21:45:17 +0100
Subject: [PATCH] Close CreateDB dialog after creation

---
 fda-ui/components/dialogs/CreateDB.vue | 2 +-
 fda-ui/pages/databases/index.vue       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fda-ui/components/dialogs/CreateDB.vue b/fda-ui/components/dialogs/CreateDB.vue
index 5e9f862982..7536850001 100644
--- a/fda-ui/components/dialogs/CreateDB.vue
+++ b/fda-ui/components/dialogs/CreateDB.vue
@@ -180,7 +180,7 @@ export default {
       }
       this.loading = false
       this.$toast.success(`Database "${res.data.name}" created.`)
-      // this.$emit('refresh')
+      this.$emit('close')
       await this.$router.push(`/databases/${containerId}/info`)
     }
   }
diff --git a/fda-ui/pages/databases/index.vue b/fda-ui/pages/databases/index.vue
index 08151c3805..01a926576b 100644
--- a/fda-ui/pages/databases/index.vue
+++ b/fda-ui/pages/databases/index.vue
@@ -49,7 +49,7 @@
         v-model="createDbDialog"
         persistent
         max-width="640">
-        <CreateDB @refresh="refresh" />
+        <CreateDB @close="createDbDialog = false" />
       </v-dialog>
     </v-card>
   </div>
-- 
GitLab