Skip to content

Commit

Permalink
Added new in progress icon. Jobs which are in running state have a di…
Browse files Browse the repository at this point in the history
…fferent icon in the detailed view. (#123)
  • Loading branch information
michelvocks authored and Skarlso committed Oct 11, 2018
1 parent bcaf623 commit aff239a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file added frontend/client/assets/inprogress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion frontend/client/views/pipeline/detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,9 @@ export default {
// Iterate all jobs of the pipeline
for (let i = 0, l = jobs.length; i < l; i++) {
// Choose the image for this node
// Choose the image for this node and border color
var nodeImage = require('assets/questionmark.png')
var borderColor = '#222222'
if (jobs[i].status) {
switch (jobs[i].status) {
case 'success':
Expand All @@ -272,6 +273,10 @@ export default {
case 'failed':
nodeImage = require('assets/fail.png')
break
case 'running':
nodeImage = require('assets/inprogress.png')
borderColor = '#e8720b'
break
}
}
Expand All @@ -285,6 +290,9 @@ export default {
label: jobs[i].title,
font: {
color: '#eeeeee'
},
color: {
border: borderColor
}
}
Expand Down

0 comments on commit aff239a

Please sign in to comment.