Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 8b08dc6

Browse files
oodamienjvalkeal
authored andcommitted
Task execution page: revisit the way we portray task arguments
Resolves #925
1 parent 455ce8e commit 8b08dc6

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

ui/src/app/tasks/task-execution/task-execution.component.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@
2828
</tr>
2929
<tr>
3030
<td>Arguments</td>
31-
<td>{{ taskExecution.arguments || 'N/A' }}</td>
31+
<td>
32+
<div *ngIf="taskExecution.arguments">
33+
<div *ngFor="let arg of getArguments(taskExecution.arguments)">
34+
{{ arg[0] }}:
35+
<strong>{{ arg[1] }}</strong>
36+
</div>
37+
</div>
38+
<div *ngIf="!taskExecution.arguments">
39+
N/A
40+
</div>
41+
</td>
3242
</tr>
3343
<tr>
3444
<td>External Execution Id</td>

ui/src/app/tasks/task-execution/task-execution.component.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,13 @@ export class TaskExecutionComponent implements OnInit {
6767
this.routingStateService.back('/tasks/executions', /^(\/tasks\/executions\/)/);
6868
}
6969

70+
/**
71+
* Prepare args (split line into array)
72+
* @param {Array<any>} args
73+
* @returns {Array<any>}
74+
*/
75+
getArguments(args: Array<any>): Array<any> {
76+
return args.map((arg) => arg.split('='));
77+
}
78+
7079
}

0 commit comments

Comments
 (0)