Skip to content

Commit

Permalink
made the whole row clickable and removed the column open
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Kreiner committed Jan 30, 2025
1 parent 09d1739 commit 1530a03
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions frontend/src/page/ReportOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,6 @@ const ReportOverview: React.FunctionComponent = () => {
* The definition of the data grid columns.
*/
const columns: GridColDef[] = [
{
field: "open",
headerName: localization.ReportPage.open,
disableColumnMenu: true,
sortable: false,
align: "center",
headerAlign: "center",
renderCell: (params) => (
<IconButton onClick={() => window.open("reports/" + params.row.id, "_blank")}>
<OpenInNewIcon color={"secondary"}></OpenInNewIcon>
</IconButton>
)
},
{
field: 'cveId',
headerName: 'CVE ID',
Expand Down Expand Up @@ -310,6 +297,7 @@ const ReportOverview: React.FunctionComponent = () => {
rows={selectedReports}
columns={columns}
getRowId={(row) => row.cveObject.cveId + row.dependency.dependencyName + row.dependency.version}
onRowClick={(params) => window.open("reports/" + params.row.id, "_blank")}
/> : null}
</Grid>
</Grid>
Expand Down

0 comments on commit 1530a03

Please sign in to comment.