diff --git a/src/app/workflow/workflow-executions-list/workflow-executions-list.component.html b/src/app/workflow/workflow-executions-list/workflow-executions-list.component.html index c6b662cb..67b612fe 100644 --- a/src/app/workflow/workflow-executions-list/workflow-executions-list.component.html +++ b/src/app/workflow/workflow-executions-list/workflow-executions-list.component.html @@ -66,25 +66,25 @@ Metrics - +
- + -
- {{metric.name}} + {{metric.name}} {{metric.value}}% + {{metric.value}}
-
- Hide metrics - Show all metrics +
+ Hide metrics + Show all metrics
@@ -119,7 +119,7 @@ + class="d-flex flex-wrap op-table-row align-items-flex-start">
diff --git a/src/app/workflow/workflow-executions-list/workflow-executions-list.component.scss b/src/app/workflow/workflow-executions-list/workflow-executions-list.component.scss index f28f00b2..2e702bdc 100644 --- a/src/app/workflow/workflow-executions-list/workflow-executions-list.component.scss +++ b/src/app/workflow/workflow-executions-list/workflow-executions-list.component.scss @@ -38,6 +38,11 @@ .cdk-column-metrics { flex-basis: 200px; + + table { + position: relative; + top: -1px; + } } .cdk-column-actions { diff --git a/src/app/workflow/workflow-executions-list/workflow-executions-list.component.ts b/src/app/workflow/workflow-executions-list/workflow-executions-list.component.ts index 0cf364fe..d44bc59a 100644 --- a/src/app/workflow/workflow-executions-list/workflow-executions-list.component.ts +++ b/src/app/workflow/workflow-executions-list/workflow-executions-list.component.ts @@ -24,7 +24,7 @@ import { PermissionService } from '../../permissions/permission.service'; }) export class WorkflowExecutionsListComponent implements OnInit, OnDestroy { private snackbarRef: MatSnackBarRef; - showAllMetrics = false; + showAllMetrics = new Map(); @Input() displayedColumns = ['name', 'status', 'start', 'end', 'metrics', 'template', 'createdAt', 'spacer', 'actions', 'labels']; @Input() sort = 'createdAt'; @@ -128,7 +128,11 @@ export class WorkflowExecutionsListComponent implements OnInit, OnDestroy { this.sortChange.emit(event); } - toggleShowMetrics() { - this.showAllMetrics = !this.showAllMetrics; + toggleShowMetrics(workflowUid: string) { + if (this.showAllMetrics.get(workflowUid)) { + this.showAllMetrics.set(workflowUid, false); + } else { + this.showAllMetrics.set(workflowUid, true); + } } } diff --git a/src/styles/flex-styles.scss b/src/styles/flex-styles.scss index 2f239ba6..ae36e3d1 100644 --- a/src/styles/flex-styles.scss +++ b/src/styles/flex-styles.scss @@ -30,6 +30,10 @@ align-items: center; } +.align-items-flex-start { + align-items: flex-start; +} + .justify-content-between { justify-content: space-between; }