From 7bc5c2eb5daca8d6d88cd211089e4e3ce636c0ef Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 18 Apr 2024 21:12:43 +0000 Subject: [PATCH] feat: filter unused clients --- .../dashboard/settings/data-sources/EditBase.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 e4cd16c3c7..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) },