Browse Source

feat: filter unused clients

nc-feat/dbricks-v3
mertmit 7 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, ClientType,
ProjectIdInj, ProjectIdInj,
SSLUsage, SSLUsage,
clientTypes as _clientTypes,
baseTitleValidator, baseTitleValidator,
clientTypes,
computed, computed,
extractSdkResponseErrorMsg, extractSdkResponseErrorMsg,
fieldRequiredValidator, fieldRequiredValidator,
@ -57,6 +57,12 @@ const { t } = useI18n()
const editingSource = ref(false) const editingSource = ref(false)
const clientTypes = computed(() => {
return _clientTypes.filter((type) => {
return ![ClientType.SNOWFLAKE, ClientType.DATABRICKS].includes(type.value)
})
})
const formState = ref<ProjectCreateForm>({ const formState = ref<ProjectCreateForm>({
title: '', title: '',
dataSource: { ...getDefaultConnectionConfig(ClientType.MYSQL) }, dataSource: { ...getDefaultConnectionConfig(ClientType.MYSQL) },

Loading…
Cancel
Save