Skip to content

Commit

Permalink
Disable test datasets button for non-database integrations (#5560)
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana committed Dec 5, 2024
1 parent cd95a92 commit b46a426
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,13 @@ export const ConnectorParametersForm = ({
{testButtonLabel}
</Button>
) : null}
{isPlusEnabled && !_.isEmpty(initialDatasets) && (
<Button onClick={() => onTestDatasetsClick()}>
Test datasets
</Button>
)}
{isPlusEnabled &&
SystemType.DATABASE === connectionOption.type &&
!_.isEmpty(initialDatasets) && (
<Button onClick={() => onTestDatasetsClick()}>
Test datasets
</Button>
)}
{connectionOption.authorization_required && !authorized ? (
<Button
loading={isAuthorizing}
Expand Down

0 comments on commit b46a426

Please sign in to comment.