mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Cloud Security] Hide agentless traffic filtering callout in Serverless (#216239)
This commit is contained in:
parent
b1b8b190bd
commit
e86127ab49
2 changed files with 6 additions and 1 deletions
|
@ -979,6 +979,7 @@ export const CspPolicyTemplateForm = memo<PackagePolicyReplaceDefineStepExtensio
|
|||
|
||||
{shouldRenderAgentlessSelector && (
|
||||
<SetupTechnologySelector
|
||||
showLimitationsMessage={!isServerless}
|
||||
disabled={isEditPage}
|
||||
setupTechnology={setupTechnology}
|
||||
onSetupTechnologyChange={(value) => {
|
||||
|
|
|
@ -26,10 +26,12 @@ export const SetupTechnologySelector = ({
|
|||
disabled,
|
||||
setupTechnology,
|
||||
onSetupTechnologyChange,
|
||||
showLimitationsMessage = true,
|
||||
}: {
|
||||
disabled: boolean;
|
||||
setupTechnology: SetupTechnology;
|
||||
onSetupTechnologyChange: (value: SetupTechnology) => void;
|
||||
showLimitationsMessage?: boolean;
|
||||
}) => {
|
||||
const radioGroupItemId1 = useGeneratedHtmlId({
|
||||
prefix: 'radioGroupItem',
|
||||
|
@ -127,7 +129,9 @@ export const SetupTechnologySelector = ({
|
|||
</h2>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="m" />
|
||||
<EuiCallOut title={limitationsMessage} color="warning" iconType="alert" size="m" />
|
||||
{showLimitationsMessage && (
|
||||
<EuiCallOut title={limitationsMessage} color="warning" iconType="alert" size="m" />
|
||||
)}
|
||||
<EuiSpacer size="m" />
|
||||
<EuiRadioGroup
|
||||
disabled={disabled}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue