summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-01 14:22:07 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-01 14:22:07 +0100
commit1e659642f2f957b0d489132e1471d24ea81eee3b (patch)
tree6d42a06e14827fe74a1ac6cd7e9a40b61fa4d390
parent10d1473a9767c6c103bc86e4f81bd7ac4b351b47 (diff)
downloadciat-ui-1e659642f2f957b0d489132e1471d24ea81eee3b.tar.gz
Failed attempt to hide status bar in completed builds
-rw-r--r--js/main.js2
-rw-r--r--partials/visualisation.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/main.js b/js/main.js
index f5f5e69..4bcb84b 100644
--- a/js/main.js
+++ b/js/main.js
@@ -86,7 +86,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval)
});
}
else if (key.indexOf("Build") > -1) {
- var progressStyle = "progress-bar-success progress-bar-striped"
+ var progressStyle = "progress-bar-success progress-bar-striped ng-hide"
if (state === "building" ) {
progressStyle = "progress-bar-warning progress-bar-striped active"
progress = (timeRunning * 100) / previousTime;
diff --git a/partials/visualisation.html b/partials/visualisation.html
index 0c5710f..e64fae4 100644
--- a/partials/visualisation.html
+++ b/partials/visualisation.html
@@ -26,7 +26,7 @@
ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}"
ng-click="select(step, $event)">
{{step.name}}
- <div class="progress">
+ <div class="progress {{step.style}}">
<div class="progress-bar {{step.style}}" role="progressbar" aria-valuenow="{{step.progress}}" aria-valuemin="0" aria-valuemax="100" style="width: {{step.progress}}%">
<span class="sr-only">{{step.progress}}% Complete</span>
</div>