diff --git a/libs/ui-lib/lib/common/components/ui/formik/CodeField.tsx b/libs/ui-lib/lib/common/components/ui/formik/CodeField.tsx index 911bcefb70..e02078c0bd 100644 --- a/libs/ui-lib/lib/common/components/ui/formik/CodeField.tsx +++ b/libs/ui-lib/lib/common/components/ui/formik/CodeField.tsx @@ -20,6 +20,7 @@ const CodeField = ({ isDisabled, downloadFileName, dataTestid, + isReadOnly, }: CodeFieldProps) => { const [field, , { setValue, setTouched }] = useField({ name, validate }); const fieldId = getFieldId(name, 'input', idPostfix); @@ -61,6 +62,7 @@ const CodeField = ({ setValue(value, true); } }} + isReadOnly={isReadOnly} /> diff --git a/libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx b/libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx index 77630bc85e..9a4debad2d 100644 --- a/libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx +++ b/libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx @@ -62,6 +62,7 @@ const ExpandedManifest = ({ fieldName, manifestIdx }: CustomManifestComponentPro label="Content" isRequired downloadFileName={getDownloadFileName(manifestIdx, value)} + isReadOnly />