Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
Add Aliases Column (#15)
Browse files Browse the repository at this point in the history
Removed Workflow column to make room for it
  • Loading branch information
coverbeck authored May 25, 2018
1 parent d769483 commit e5369e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions spa/src/app/files/table/table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
<mat-header-cell *matHeaderCellDef mat-sort-header> Submitter Sample</mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.sample}}</mat-cell>
</ng-container>
<ng-container matColumnDef="software">
<mat-header-cell *matHeaderCellDef mat-sort-header> Work Flow</mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.workflow}}</mat-cell>
</ng-container>
<ng-container matColumnDef="title">
<mat-header-cell *matHeaderCellDef mat-sort-header> Filename</mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.title}}</mat-cell>
Expand All @@ -46,6 +42,10 @@
<mat-header-cell *matHeaderCellDef mat-sort-header> DOS URI</mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.dos_uri}}</mat-cell>
</ng-container>
<ng-container matColumnDef="aliases">
<mat-header-cell *matHeaderCellDef mat-sort-header> Aliases</mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.aliases}}</mat-cell>
</ng-container>
<ng-container matColumnDef="fileSize">
<mat-header-cell *matHeaderCellDef mat-sort-header> File Size</mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.size | fileSize}}</mat-cell>
Expand Down
6 changes: 4 additions & 2 deletions spa/src/app/files/table/table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class TableComponent implements OnInit {
displayedColumns = [
"program", "project", "submittedDonorId",
"submittedSpecimenId", "specimen_type", "submittedSampleId",
"software", "title", "dos_uri", "fileSize"
"title", "dos_uri", "aliases", "fileSize"
];
tableElementDataSource: TableElementDataSource;
pagination$: Observable<PaginationModel>;
Expand Down Expand Up @@ -262,6 +262,7 @@ export interface Element {
workflow: string;
title: string;
dos_uri: string;
aliases: string;
size: number;
}

Expand Down Expand Up @@ -293,7 +294,8 @@ class TableElementDataSource extends DataSource<any> {
workflow: row.analysisMethod.software,
title: row.fileCopies[0].fileName,
dos_uri: row.fileCopies[0].dosUri,
size: row.fileCopies[0].fileSize
aliases: row.fileCopies[0].aliases,
size: row.fileCopies[0].fileSize,
};
});
});
Expand Down

0 comments on commit e5369e1

Please sign in to comment.