Skip to content

Commit

Permalink
jobs: Add a column with end time
Browse files Browse the repository at this point in the history
If the job is completed or has failed, the column displays the end time
of the task.
  • Loading branch information
tahini committed Dec 18, 2023
1 parent df58bb0 commit 6fdef57
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en/transit.json
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@
},
"jobs": {
"Date": "Date",
"EndTime": "End",
"Status": "Status",
"JobType": "Name",
"Data": "Parameters",
Expand Down
1 change: 1 addition & 0 deletions locales/fr/transit.json
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@
},
"jobs": {
"Date": "Date",
"EndTime": "Fin",
"Status": "Status",
"JobType": "Nom",
"Data": "Paramètres",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ const ExecutableJobComponent: React.FunctionComponent<ExecutableJobComponentProp
width: 100,
Cell: (props) => moment(props.value).format('YYYY-MM-DD hh:mm')
},
{
Header: props.t('transit:jobs:EndTime'),
accessor: 'updated_at',
width: 100,
Cell: (cellProps) =>
cellProps.row.original.status === 'completed' || cellProps.row.original.status === 'failed'
? moment(cellProps.value).format('YYYY-MM-DD hh:mm')
: null
},
{
Header: props.t('transit:jobs:Status'),
accessor: 'status',
Expand Down

0 comments on commit 6fdef57

Please sign in to comment.