Skip to content

Commit

Permalink
Hiding sec icon for failover/load-balanced endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
HiranyaKavishani committed Jul 27, 2023
1 parent 47dcfce commit e21b8bb
Showing 1 changed file with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,27 +224,29 @@ function GenericEndpoint(props) {
</Icon>
</Tooltip>
</IconButton>
<IconButton
className={classes.iconButton}
aria-label='Security'
onClick={() => setESConfigOpen(type, esCategory)}
disabled={(isRestricted(['apim:api_create'], api))}
>
<Tooltip
placement='top-start'
interactive
title={(
<FormattedMessage
id='Apis.Details.Endpoints.GenericEndpoint.security.endpoint'
defaultMessage='Endpoint security'
/>
)}
{(type === 'load_balance' || type === 'failover') ? (<div />) : (
<IconButton
className={classes.iconButton}
aria-label='Security'
onClick={() => setESConfigOpen(type, esCategory)}
disabled={(isRestricted(['apim:api_create'], api))}
>
<Icon>
security
</Icon>
</Tooltip>
</IconButton>
<Tooltip
placement='top-start'
interactive
title={(
<FormattedMessage
id='Apis.Details.Endpoints.GenericEndpoint.security.endpoint'
defaultMessage='Endpoint security'
/>
)}
>
<Icon>
security
</Icon>
</Tooltip>
</IconButton>
)}
</>
)}
{(index > 0) ? <Divider className={classes.divider} /> : <div />}
Expand Down

0 comments on commit e21b8bb

Please sign in to comment.