From a9cf5d1e94b2f4a860cc1192f7a714842bece4d5 Mon Sep 17 00:00:00 2001 From: Mark Hopkin Date: Thu, 17 Nov 2022 19:57:01 +0000 Subject: [PATCH] [Fleet] Do not show processors and datastreams editor for input only packages --- .../steps/components/package_policy_input_stream.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx index 2e5f98c8359e7..716636bbb24bf 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx @@ -83,6 +83,7 @@ export const PackagePolicyInputStreamConfig = memo( !!packagePolicyInputStream.id && packagePolicyInputStream.id === defaultDataStreamId; const isPackagePolicyEdit = !!packagePolicyId; + const isInputOnlyPackage = packageInfo.type === 'input'; useEffect(() => { if (isDefaultDatstream && containerRef.current) { @@ -317,8 +318,8 @@ export const PackagePolicyInputStreamConfig = memo( ); })} - {/* Only show datastream pipelines and mappings on edit */} - {isPackagePolicyEdit && ( + {/* Only show datastream pipelines and mappings on edit and not for input packages*/} + {isPackagePolicyEdit && !isInputOnlyPackage && ( <>