Skip to content

Commit

Permalink
added resubmit and different colors for FINISHEDDIRTY
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-manzi committed Jun 26, 2015
1 parent 64c33d2 commit 4385447
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,20 @@ function getColumn(columnName){
}

function isErrorState(job_state){
return job_state=="FAILED" || job_state=="CANCELED";
return job_state=="FAILED" || job_state=="CANCELED" || job_state=="FINISHEDDIRTY";
}

function isFinalState(job_state){
return isErrorState(job_state) || job_state=="FINISHED";
return isErrorState(job_state) || job_state=="FINISHED" || job_state=="FINISHEDDIRTY";
}

function getRowColor(job_state){
if (job_state=="FAILED" || job_state=="CANCELED"){
return "danger";
} else if (job_state=="FINISHED"){
return "success";
} else if (job_state=="FINISHEDDIRTY"){
return "active";
} else {
return "warning";
}
Expand Down

0 comments on commit 4385447

Please sign in to comment.