Skip to content

Commit

Permalink
Added NVD link to Vuln title in Vuln Details page (CRASM-627) (#730)
Browse files Browse the repository at this point in the history
* Added NVD link to Vuln title in Vuln Details page

- Added styled button and end icon to match similar form and function in All Vulns table.

* Added more informative aria-label
  • Loading branch information
hawkishpolicy authored Nov 20, 2024
1 parent 36eb23c commit 3e772fd
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion frontend/src/pages/Vulnerability/Vulnerability.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,21 @@ export const Vulnerability: React.FC = () => {
<Table>
<TableHead>
<TableRow>
<TableCell>{vulnerability.title || ''}</TableCell>
<TableCell>
<Button
onClick={() =>
window.open(
'https://nvd.nist.gov/vuln/detail/' + vulnerability.title
)
}
style={{ textDecorationLine: ' underline' }}
endIcon={<OpenInNew />}
aria-label={`View NIST entry for ${vulnerability.title}`}
>
{' '}
{vulnerability.title || ''}
</Button>
</TableCell>
<TableCell>
<Box
component="span"
Expand Down

0 comments on commit 3e772fd

Please sign in to comment.