From 8357383159cb92e202c9c93ace234ee2fd2862eb Mon Sep 17 00:00:00 2001 From: Derrick Hawkins Date: Tue, 12 Dec 2023 12:20:13 -0800 Subject: [PATCH] feature flag cloudflare ca issuer key field --- .../clusterForms/shared/setupForm/index.tsx | 24 +++++++++++-------- redux/slices/featureFlags.slice.ts | 1 + types/config/index.ts | 1 + 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/containers/clusterForms/shared/setupForm/index.tsx b/containers/clusterForms/shared/setupForm/index.tsx index 66e23687..e64b7e9c 100644 --- a/containers/clusterForms/shared/setupForm/index.tsx +++ b/containers/clusterForms/shared/setupForm/index.tsx @@ -53,9 +53,11 @@ const SetupForm: FunctionComponent = () => { installType, values, clusterMap, - } = useAppSelector(({ api, installation }) => ({ + showCloudflareCaIssuerField, + } = useAppSelector(({ api, installation, featureFlags }) => ({ ...api, ...installation, + showCloudflareCaIssuerField: featureFlags.flags.showCloudflareCaIssuerField, })); const { @@ -274,15 +276,17 @@ const SetupForm: FunctionComponent = () => { onErrorText="Invalid token." onChange={handleCloudfareToken} /> - + {showCloudflareCaIssuerField && ( + + )} )}