From 47813f8460d7ed8f82e7876a95ca10677a403033 Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Wed, 4 Dec 2024 15:40:32 -0800 Subject: [PATCH] Disable test datasets button for non-database integrations --- .../forms/ConnectorParametersForm.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx b/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx index dae5bce4b1..92c881bd41 100644 --- a/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx +++ b/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx @@ -522,11 +522,13 @@ export const ConnectorParametersForm = ({ {testButtonLabel} ) : null} - {isPlusEnabled && !_.isEmpty(initialDatasets) && ( - - )} + {isPlusEnabled && + SystemType.DATABASE === connectionOption.type && + !_.isEmpty(initialDatasets) && ( + + )} {connectionOption.authorization_required && !authorized ? (