From 79d7d05fd8604ddd6970f66545c9b748b914900d Mon Sep 17 00:00:00 2001 From: Jordan <51442161+JordanSh@users.noreply.github.com> Date: Thu, 19 Oct 2023 23:30:48 +0300 Subject: [PATCH] [Cloud Security] Enable credential fields in integration edit (#169365) (cherry picked from commit 44f3910763996da35cb9a22ce8042da309319d91) --- .../aws_credentials_form/aws_credentials_form.tsx | 9 --------- .../components/fleet_extensions/gcp_credential_form.tsx | 3 --- .../components/fleet_extensions/policy_template_form.tsx | 4 ++-- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/aws_credentials_form/aws_credentials_form.tsx b/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/aws_credentials_form/aws_credentials_form.tsx index 5c12396942d77..4be4ac082f60f 100644 --- a/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/aws_credentials_form/aws_credentials_form.tsx +++ b/x-pack/plugins/cloud_security_posture/public/components/fleet_extensions/aws_credentials_form/aws_credentials_form.tsx @@ -255,7 +255,6 @@ export const AwsCredentialsForm = ({ {setupFormat === 'manual' && ( <> { updatePolicy( @@ -271,7 +270,6 @@ export const AwsCredentialsForm = ({ { updatePolicy(getPosturePolicy(newPolicy, input.type, { [key]: { value } })); @@ -286,11 +284,9 @@ export const AwsCredentialsForm = ({ const AwsCredentialTypeSelector = ({ type, onChange, - disabled, }: { onChange(type: AwsCredentialsType): void; type: AwsCredentialsType; - disabled: boolean; }) => ( ; onChange: (key: string, value: string) => void; - disabled: boolean; }) => (
{fields.map((field) => ( @@ -325,7 +318,6 @@ const AwsInputVarFields = ({ <> {field.type === 'password' && (