Skip to content

Commit

Permalink
feat: Add link to deeptrack in codebase branch widget (#92)
Browse files Browse the repository at this point in the history
Jira: EPMDPEDP-12901
Related: #92
Change-Id: I4e50f5c869019e190384e74b1b2ab48d7028996a
  • Loading branch information
callmevladik committed Nov 3, 2023
1 parent 443d2b1 commit 7cb7b01
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Chip,
Grid,
IconButton,
Link,
Tooltip,
Typography,
} from '@material-ui/core';
Expand Down Expand Up @@ -362,14 +363,14 @@ export const CodebaseBranch = ({
<AccordionDetails>
<Grid container spacing={5}>
<Grid item xs={12}>
<Render condition={!!ciDependencyTrackURL}>
<div>
{!!ciDependencyTrackURL && (
<Link href={ciDependencyTrackURL} target={'_blank'}>
<img
src={`${ciDependencyTrackURL}/api/v1/badge/vulns/project/${codebaseData.metadata.name}/${codebaseBranchData.spec.branchName}`}
alt=""
/>
</div>
</Render>
</Link>
)}
</Grid>
<Grid item xs={12}>
<Grid container spacing={5}>
Expand Down

0 comments on commit 7cb7b01

Please sign in to comment.