From e9eb51417ce444b5fbc49d9897a10e95c1986e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Mon, 9 Dec 2024 10:28:23 +0100 Subject: [PATCH] Initial commit --- .../components/connectors/create_connector/start_step.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx index fb740189148d7..978a87fec1220 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx @@ -67,6 +67,7 @@ export const StartStep: React.FC = ({ generatedConfigData, isGenerateLoading, isCreateLoading, + isFormDirty, } = useValues(NewConnectorLogic); const { setRawName, createConnector, generateConnectorName, setFormDirty } = useActions(NewConnectorLogic); @@ -211,7 +212,9 @@ export const StartStep: React.FC = ({ { defaultMessage: 'Elastic managed' } )} checked={selfManagePreference === 'native'} - disabled={selectedConnector?.isNative === false || isRunningLocally} + disabled={ + selectedConnector?.isNative === false || isRunningLocally || isFormDirty + } onChange={() => onSelfManagePreferenceChange('native')} name="setUp" /> @@ -232,6 +235,7 @@ export const StartStep: React.FC = ({ { defaultMessage: 'Self-managed' } )} checked={selfManagePreference === 'selfManaged'} + disabled={isFormDirty} onChange={() => onSelfManagePreferenceChange('selfManaged')} name="setUp" />