Skip to content

Commit

Permalink
Hide 'Cluster-Wide' Access in namespace scoped ChaosCentre (#4615)
Browse files Browse the repository at this point in the history
Signed-off-by: Baalekshan <[email protected]>
  • Loading branch information
Baalekshan committed Jun 7, 2024
1 parent dbf78d8 commit 719d783
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ export function DeploymentScope({
return (
<FormikCollapsableSelect<DeploymentScopeItem>
name="deploymentScope"
items={isInfraPresent ? deploymentScopeDataNs : deploymentScopeData}
items={
isInfraPresent || deploymentScope === DeploymentScopeOptions.NAMESPACE
? deploymentScopeDataNs
: deploymentScopeData
}
selected={deploymentScopeData[deploymentScopeData.findIndex(card => card.type === deploymentScope)]}
onChange={onChange}
type={CollapsableSelectType.CardView}
Expand Down

0 comments on commit 719d783

Please sign in to comment.