Skip to content

Commit

Permalink
Fixed bug where jobs added to the board while running were not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
beverlyRoadGoose committed Aug 12, 2019
1 parent 6c7a92d commit ea93cef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Change Log

#### v0.2.0-beta.4
- Fixed bug where jobs added to the board while running were not displayed

##### v0.1.3-beta.3 ~ 2019.08.06
- Corrected build version in build properties file

Expand Down
12 changes: 12 additions & 0 deletions src/main/webapp/src/components/board/MonitoredJob.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@
return this.jobData.latestRun !== null;
},

jobHasACompleteRun: function () {
return this.jobData.lastCompleteRun !== null;
},

jobIsRunning: function () {
return this.jobHasBeenRun() && this.jobData.latestRun.isRunning;
},
Expand All @@ -175,6 +179,10 @@
},

getProgressBarColor: function () {
if (!this.jobHasACompleteRun()) {
return '#ababab';
}

switch (this.jobData.lastCompleteRun.result.name) {
case 'SUCCESS': return '#98d398';
case 'FAILURE': return '#ff7d77';
Expand All @@ -184,6 +192,10 @@
},

getProgressBarBlinkClass: function () {
if (!this.jobHasACompleteRun()) {
return 'blink-grey';
}

switch (this.jobData.lastCompleteRun.result.name) {
case 'SUCCESS': return 'blink-green';
case 'FAILURE': return 'blink-red';
Expand Down

0 comments on commit ea93cef

Please sign in to comment.