Skip to content

Commit 077d340

Browse files
committed
UI: Fix time display issue on runs table
1 parent 0ca5a79 commit 077d340

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

observability_ui/apps/shell/src/app/projects/runs/runs-table/run-time/run-time.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
</small>
2424

2525
<ng-template #tooltipTpl>
26-
<div>Late by: {{actual | duration:expected}}</div>
26+
<div>Late by: {{(actual || currentTime) | duration:expected}}</div>
2727
<div>Expected: {{expected | parseDate | date:"MMM d, h:mm:ss a"}}</div>
2828
</ng-template>

observability_ui/apps/shell/src/app/projects/runs/runs-table/run-time/run-time.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export class RunTimeComponent {
1919
@Input() iconLabel: string;
2020

2121
private _actual = signal<string | null>(null);
22+
get actual() {
23+
return this._actual();
24+
}
25+
26+
currentTime = new Date()
2227

2328
time = computed(() => {
2429
return this._actual() || this.expected;

0 commit comments

Comments
 (0)