Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLuisGJ committed Dec 9, 2024
1 parent b3d6d91 commit e9eb514
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const StartStep: React.FC<StartStepProps> = ({
generatedConfigData,
isGenerateLoading,
isCreateLoading,
isFormDirty,
} = useValues(NewConnectorLogic);
const { setRawName, createConnector, generateConnectorName, setFormDirty } =
useActions(NewConnectorLogic);
Expand Down Expand Up @@ -211,7 +212,9 @@ export const StartStep: React.FC<StartStepProps> = ({
{ defaultMessage: 'Elastic managed' }
)}
checked={selfManagePreference === 'native'}
disabled={selectedConnector?.isNative === false || isRunningLocally}
disabled={
selectedConnector?.isNative === false || isRunningLocally || isFormDirty
}
onChange={() => onSelfManagePreferenceChange('native')}
name="setUp"
/>
Expand All @@ -232,6 +235,7 @@ export const StartStep: React.FC<StartStepProps> = ({
{ defaultMessage: 'Self-managed' }
)}
checked={selfManagePreference === 'selfManaged'}
disabled={isFormDirty}
onChange={() => onSelfManagePreferenceChange('selfManaged')}
name="setUp"
/>
Expand Down

0 comments on commit e9eb514

Please sign in to comment.