Browse Source

feat: filter unused clients

nc-feat/dbricks-v3
mertmit 8 months ago
parent
commit
7bc5c2eb5d
  1. 8
      packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue

8
packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue

@ -8,8 +8,8 @@ import {
ClientType,
ProjectIdInj,
SSLUsage,
clientTypes as _clientTypes,
baseTitleValidator,
clientTypes,
computed,
extractSdkResponseErrorMsg,
fieldRequiredValidator,
@ -57,6 +57,12 @@ const { t } = useI18n()
const editingSource = ref(false)
const clientTypes = computed(() => {
return _clientTypes.filter((type) => {
return ![ClientType.SNOWFLAKE, ClientType.DATABRICKS].includes(type.value)
})
})
const formState = ref<ProjectCreateForm>({
title: '',
dataSource: { ...getDefaultConnectionConfig(ClientType.MYSQL) },

Loading…
Cancel
Save