Skip to content

Commit

Permalink
Merge pull request #785 from nimsara66/3191
Browse files Browse the repository at this point in the history
Fix green check mark for AI API  without backend security
  • Loading branch information
RakhithaRR authored Oct 7, 2024
2 parents 959ffe0 + 19d21bd commit 2b8420e
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export default function CustomizedStepper() {
const isPrototypedAvailable = api.apiType !== API.CONSTS.APIProduct && api.endpointConfig !== null
&& api.endpointConfig.implementation_status === 'prototyped';
const isEndpointAvailable = api.endpointConfig !== null;
const isEndpointSecurityConfigured = api.endpointConfig && api.endpointConfig.endpoint_security;
const isTierAvailable = api.policies.length !== 0;
const lifecycleState = api.isAPIProduct() ? api.state : api.lifeCycleStatus;
const isPublished = lifecycleState === 'PUBLISHED';
Expand Down Expand Up @@ -490,11 +491,18 @@ export default function CustomizedStepper() {
style={{ marginLeft: '2px' }}
>
<Grid item>
{isEndpointAvailable ? (
<CheckIcon className={classes.iconTrue} />
) : (
<CloseIcon className={classes.iconFalse} />
)}
{isEndpointAvailable && (
api.subtype === 'AIAPI'
? isEndpointSecurityConfigured
: true
)
? (
<CheckIcon className={classes.iconTrue} />
)
: (
<CloseIcon className={classes.iconFalse} />
)
}
</Grid>
<Box ml={1} mb={1}>
<Grid item>
Expand Down

0 comments on commit 2b8420e

Please sign in to comment.