From e43eecb6f9166278ec7c31d4235c3fca67582b2d Mon Sep 17 00:00:00 2001 From: arashsheyda Date: Fri, 21 Apr 2023 13:51:16 +0300 Subject: [PATCH] chore: fix ui --- client/components/DatabaseDetail.vue | 8 +++++++- client/components/Navbar.vue | 8 ++++++-- client/pages/index.vue | 14 +++++++------- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/client/components/DatabaseDetail.vue b/client/components/DatabaseDetail.vue index 79e9ba1..aa161a8 100644 --- a/client/components/DatabaseDetail.vue +++ b/client/components/DatabaseDetail.vue @@ -34,6 +34,8 @@ const filtered = computed(() => { }) function addDocument() { + if (editing.value) + return editing.value = true selectedDocument.value = {} for (const field of fields.value) { @@ -80,12 +82,16 @@ async function deleteDocument(document: any) {