Skip to content

Commit b76d306

Browse files
committed
HARMONY-1998: Show warning status + sub_status
1 parent c93d3ed commit b76d306

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

services/harmony/app/frontends/workflow-ui.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,10 @@ function workItemRenderingFunctions(job: Job, isAdmin: boolean, isLogViewer: boo
481481
badgeClasses[WorkItemStatus.SUCCESSFUL] = 'success';
482482
badgeClasses[WorkItemStatus.RUNNING] = 'info';
483483
badgeClasses[WorkItemStatus.QUEUED] = 'warning';
484+
badgeClasses[WorkItemStatus.WARNING] = 'warning';
484485
return {
485486
workflowItemBadge(): string { return badgeClasses[this.status]; },
487+
workflowItemStatus(): string { return this.sub_status ? `${this.status}: ${this.sub_status}` : this.status; },
486488
workflowItemStep(): string { return sanitizeImage(this.serviceID); },
487489
workflowItemCreatedAt(): string { return this.createdAt.getTime(); },
488490
workflowItemUpdatedAt(): string { return this.updatedAt.getTime(); },

services/harmony/app/views/workflow-ui/job/work-item-table-row.mustache.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<th scope="row">{{workflowStepIndex}}</th>
33
<td>{{workflowItemStep}}</td>
44
<td>{{id}}</td>
5-
<td><span class="badge rounded-pill bg-{{workflowItemBadge}}">{{status}}</span></td>
5+
<td><span class="badge rounded-pill bg-{{workflowItemBadge}}">{{workflowItemStatus}}</span></td>
66
{{#isAdminOrLogViewer}}
77
<td>{{{workflowItemLogsButton}}}</td>
88
{{/isAdminOrLogViewer}}

0 commit comments

Comments
 (0)