diff --git a/packages/nc-gui-v2/pages/index/index/create-external.vue b/packages/nc-gui-v2/pages/index/index/create-external.vue index a5c086b5e1..84df405364 100644 --- a/packages/nc-gui-v2/pages/index/index/create-external.vue +++ b/packages/nc-gui-v2/pages/index/index/create-external.vue @@ -46,6 +46,16 @@ const formState = $ref({ sslUse: 'No', }) +const customFormState = ref({ + title: '', + dataSource: { ...getDefaultConnectionConfig(ClientType.MYSQL) }, + inflection: { + inflectionColumn: 'camelize', + inflectionTable: 'camelize', + }, + sslUse: 'No', +}) + const validators = computed(() => { return { 'title': [ @@ -214,6 +224,16 @@ const testConnection = async () => { } } +const handleEditJSON = () => { + customFormState.value = { ...formState } + configEditDlg.value = true +} + +const handleOk = () => { + formState.dataSource = { ...customFormState.value.dataSource } + configEditDlg.value = false +} + // reset test status on config change watch( () => formState.dataSource, @@ -240,14 +260,7 @@ onMounted(() => { > -
- -
- -

{{ $t('activity.createProject') }}

+

{{ $t('activity.createProject') }}

{ + + {{ type }} @@ -382,7 +397,7 @@ onMounted(() => {
- + {{ $t('activity.editConnJson') }} @@ -404,13 +419,9 @@ onMounted(() => { - + + +