Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix green check mark for AI API without backend security #785

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading