From fbddfba9206d61005bb2e89e98af0af6691e06b7 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 21 Jul 2022 00:16:36 +0530 Subject: [PATCH] fix(gui-v2): create external project corrections Signed-off-by: Pranav C --- .../pages/project/index/create-external.vue | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/packages/nc-gui-v2/pages/project/index/create-external.vue b/packages/nc-gui-v2/pages/project/index/create-external.vue index 1fc60ae6bd..200a2b0fb2 100644 --- a/packages/nc-gui-v2/pages/project/index/create-external.vue +++ b/packages/nc-gui-v2/pages/project/index/create-external.vue @@ -77,7 +77,7 @@ const configEditDlg = ref(false) // populate database name based on title watch( () => formState.title, - (v) => (formState.dataSource.connection.database = `${v}_noco`), + (v) => (formState.dataSource.connection.database = `${v?.trim()}_noco`), ) // generate a random project title @@ -288,7 +288,7 @@ onMounted(() => { - + @@ -333,18 +333,18 @@ onMounted(() => { - + {{ type }} - + {{ type }}
- + {{ $t('activity.editConnJson') }} @@ -355,8 +355,8 @@ onMounted(() => {
- Submit Test Connection + Submit
@@ -375,10 +375,18 @@ onMounted(() => { } :deep(.ant-collapse-content-box) { - @apply !pr-0; + @apply !px-0; } :deep(.ant-form-item-explain-error) { @apply !text-xs; } + +:deep(.ant-form-item) { + @apply mb-2; +} + +:deep(.ant-form-item-with-help .ant-form-item-explain) { + @apply !min-h-0; +}