diff --git a/packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue b/packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue index 0798a35964..89fd347e01 100644 --- a/packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue +++ b/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({ title: '', dataSource: { ...getDefaultConnectionConfig(ClientType.MYSQL) }, @@ -437,6 +443,40 @@ onMounted(async () => { + +