From 411c89559e0851f33369398d662804fec8b0c276 Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Thu, 5 Dec 2024 09:43:01 -0800 Subject: [PATCH] Disable test datasets button for non-database integrations (#5560) --- .../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 ? (