From 3ab2420c7e030bd172cc76dd67612151de53b64a Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Mon, 22 May 2023 23:31:18 -0400 Subject: [PATCH] Combined download stage and download progress columns --- .../downloads/downloads.component.html | 19 ++++++++----------- .../downloads/downloads.component.ts | 4 ++-- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/app/components/downloads/downloads.component.html b/src/app/components/downloads/downloads.component.html index 006dbcc..fc26145 100644 --- a/src/app/components/downloads/downloads.component.html +++ b/src/app/components/downloads/downloads.component.html @@ -31,25 +31,22 @@ - - - Stage - - {{STEP_INDEX_TO_LABEL[element.step_index]}} - Error - - - Progress + + {{STEP_INDEX_TO_LABEL[element.step_index]}} + + - {{+(element.percent_complete) > 100 ? '100' : element.percent_complete}}% + {{+(element.percent_complete) > 100 ? '100' : element.percent_complete}}% - N/A + N/A + + Error diff --git a/src/app/components/downloads/downloads.component.ts b/src/app/components/downloads/downloads.component.ts index 1dee2d1..dafb692 100644 --- a/src/app/components/downloads/downloads.component.ts +++ b/src/app/components/downloads/downloads.component.ts @@ -39,8 +39,8 @@ export class DownloadsComponent implements OnInit, OnDestroy { } actionsFlex = 2; - displayedColumnsBig: string[] = ['timestamp_start', 'title', 'step_index', 'sub_name', 'percent_complete', 'actions']; - displayedColumnsSmall: string[] = ['title', 'step_index', 'percent_complete', 'actions']; + displayedColumnsBig: string[] = ['timestamp_start', 'title', 'sub_name', 'percent_complete', 'actions']; + displayedColumnsSmall: string[] = ['title', 'percent_complete', 'actions']; displayedColumns: string[] = this.displayedColumnsBig; dataSource = null; // new MatTableDataSource();