Fixed recent job runs workflows link

This commit is contained in:
Michael Abashian 2017-02-22 10:48:53 -05:00
parent 293063d315
commit de4aeb064c

View File

@ -29,7 +29,7 @@ export default
// detailsUrl, status, name, time
scope.jobs = _.map(list, function(job){
return {
detailsUrl: job.url.replace("api/v1", "#"),
detailsUrl: job.type && job.type === 'workflow_job' ? job.url.replace("api/v1/workflow_jobs", "#/workflows") : job.url.replace("api/v1", "#"),
status: job.status,
name: job.name,
id: job.id,