Skip to content

Commit

Permalink
Merge pull request #985 from opencb/TASK-6841
Browse files Browse the repository at this point in the history
TASK-6841 - FILES section (Case info > overview > FILES) has an unnecessary “File” header column
  • Loading branch information
jmjuanes authored Sep 27, 2024
2 parents 99f8079 + 1bb1e3e commit 28521b6
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions src/webcomponents/clinical/clinical-analysis-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,40 @@ export default class ClinicalAnalysisView extends LitElement {
},
elements: [
{
title: "File",
type: "table",
field: "files",
type: "list",
display: {
contentLayout: "bullets",
template: "${name}",
columns: [
{
title: "Name",
field: "name",
},
{
title: "Size",
field: "size",
display: {
format: size => UtilsNew.getDiskUsage(size),
},
},
{
title: "Format",
field: "format",
},
{
title: "Software",
field: "software",
display: {
format: software => software?.name ? `${software.name} (${software.version || "-"})` : "-",
},
},
{
title: "Creation Date",
field: "creationDate",
display: {
format: creationDate => UtilsNew.dateFormatter(creationDate, "D MMM YYYY, h:mm:ss a"),
}
},
],
},
}
]
Expand Down

0 comments on commit 28521b6

Please sign in to comment.