Skip to content

Commit

Permalink
fix(transferring): sort incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed Jun 1, 2020
1 parent b408816 commit bab48c7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/app/pages/jobs/transferring/transferring.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import { ForamtDuration } from 'src/app/utils/format-duration';
@Component({
selector: 'jobs-transferring',
template: `
<ngx-table [configuration]="configuration" [data]="data" [columns]="columns"> </ngx-table>
<ngx-table [configuration]="configuration" [data]="data" [columns]="columns">
<ng-template let-row>
<td>{{ row.name }}</td>
<td>{{ row.sizeHumanReadable }}</td>
<td>{{ row.percentage }}</td>
<td>{{ row.speedHumanReadable }}</td>
<td>{{ row.etaHumanReadable }}</td>
</ng-template>
</ngx-table>
`,
styles: [],
})
Expand All @@ -18,10 +26,10 @@ export class TransfersComponent implements OnInit {
public configuration: Config;
public columns: Columns[] = [
{ key: 'name', title: 'Name' },
{ key: 'sizeHumanReadable', title: 'Size' },
{ key: 'size', title: 'Size' },
{ key: 'percentage', title: 'Percentage' },
{ key: 'speedHumanReadable', title: 'Speed' },
{ key: 'etaHumanReadable', title: 'eta' },
{ key: 'speed', title: 'Speed' },
{ key: 'eta', title: 'eta' },
];
public data: (ITransferring & {
sizeHumanReadable: string;
Expand Down

0 comments on commit bab48c7

Please sign in to comment.