Skip to content

Commit

Permalink
Open bugzilla links and cves in new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Aug 7, 2024
1 parent 2bcb35d commit 805c2f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/js/pages/AdvisoryDetails/AdvisoryDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function AdvisoryDetails({
<li key={`bug-${id}`}>
<a
className="text-jungle-green-500 hover:opacity-75"
target="_blank"
href={`https://bugzilla.suse.com/show_bug.cgi?id=${id}`}
>
{fix}
Expand All @@ -110,6 +111,7 @@ function AdvisoryDetails({
<li key={cve}>
<a
className="text-jungle-green-500 hover:opacity-75"
target="_blank"
href={`https://cve.mitre.org/cgi-bin/cvename.cgi?name=${cve}`}
>
{cve}
Expand Down
4 changes: 3 additions & 1 deletion assets/js/pages/AdvisoryDetails/AdvisoryDetailsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function AdvisoryDetailsPage() {
return (
<>
<BackButton url={`/hosts/${hostID}`}>Back</BackButton>
{!isLoading ? <AdvisoryDetails errata={advisoryErrata} /> : null}
{!isLoading ? (
<AdvisoryDetails advisoryName={advisoryID} errata={advisoryErrata} />
) : null}
</>
);
}
Expand Down

0 comments on commit 805c2f1

Please sign in to comment.