Skip to content

Commit

Permalink
Disable auto-detect schema notifications settings (#21613)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundito authored Jan 19, 2023
1 parent 9ca9d47 commit d902a75
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ export const ConnectionSettingsPageInner: React.FC = () => {
const { connection } = useConnectionEditService();
const { mutateAsync: deleteConnection } = useDeleteConnection();
const canUpdateDataResidency = useFeature(FeatureItem.AllowChangeDataGeographies);
const allowAutoDetectSchema = useFeature(FeatureItem.AllowAutoDetectSchema);
// TODO: Disabled until feature is implemented in backend
const canSendSchemaUpdateNotifications = false; // useFeature(FeatureItem.AllowAutoDetectSchema);

const [isAdvancedMode] = useAdvancedModeSetting();
useTrackPage(PageTrackingCodes.CONNECTIONS_ITEM_SETTINGS);
const onDelete = () => deleteConnection(connection);

return (
<div className={styles.container}>
{allowAutoDetectSchema && <SchemaUpdateNotifications />}
{canSendSchemaUpdateNotifications && <SchemaUpdateNotifications />}
{canUpdateDataResidency && <UpdateConnectionDataResidency />}
{isAdvancedMode && <StateBlock connectionId={connection.connectionId} />}
<DeleteBlock type="connection" onDelete={onDelete} />
Expand Down

0 comments on commit d902a75

Please sign in to comment.