1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

fix colours of per-job build time graph

This commit is contained in:
Oliver Giles 2020-09-19 15:22:01 +12:00
parent dc3e41fb28
commit 4b62e6dbf3

View File

@ -545,7 +545,7 @@ var Job = function() {
pointHoverRadius: 0, pointHoverRadius: 0,
},{ },{
label: 'Build time', label: 'Build time',
backgroundColor: msg.recent.map(e => e.result == 'success' ? '#74af77': '#883d3d'), backgroundColor: msg.recent.map(e => e.result == 'success' ? '#74af77': '#883d3d').reverse(),
data: msg.recent.map(function(e) { data: msg.recent.map(function(e) {
return e.completed - e.started; return e.completed - e.started;
}).reverse() }).reverse()