From d90711e7112710f1f1b0ac8527802708156b8f05 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 26 Jul 2022 16:56:09 +0800 Subject: [PATCH] feat(gui-v2): add disableImportButton & align layout margin --- .../nc-gui-v2/components/dlg/QuickImport.vue | 138 +++++++++--------- 1 file changed, 73 insertions(+), 65 deletions(-) diff --git a/packages/nc-gui-v2/components/dlg/QuickImport.vue b/packages/nc-gui-v2/components/dlg/QuickImport.vue index 794a096f1b..189d6fd8e0 100644 --- a/packages/nc-gui-v2/components/dlg/QuickImport.vue +++ b/packages/nc-gui-v2/components/dlg/QuickImport.vue @@ -107,6 +107,10 @@ const disablePreImportButton = computed(() => { } }) +const disableImportButton = computed(() => { + return !templateEditorRef.value?.isValid() +}) + const disableFormatJsonButton = computed(() => !jsonEditorRef.value?.isEditorValid()) async function handlePreImport() { @@ -213,7 +217,7 @@ function getAdapter(name: string, val: any) {