diff options
author | Pedro Alvarez <palvarez89@gmail.com> | 2015-10-02 16:48:16 +0200 |
---|---|---|
committer | Pedro Alvarez <palvarez89@gmail.com> | 2015-10-02 16:48:16 +0200 |
commit | 5cf363c212191678fa7e7a22c3efae81a35390cf (patch) | |
tree | 0dd3effef52f667820be881da326d6b1b87c6629 /js/main.js | |
parent | 26a6549436a82c09d18bf6ca5a74f3dc04e76c0a (diff) | |
download | ciat-ui-pedroalvarez/third-version.tar.gz |
Add currentBuild information in details dialogpedroalvarez/third-version
Diffstat (limited to 'js/main.js')
-rw-r--r-- | js/main.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -48,6 +48,9 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) var state = value.state; var latestBuildNumber = value.cachedBuilds.length - 1; + if (state === 'building') { + latestBuildNumber = value.currentBuilds[0]; + } var latestBuildsPath = apiBase + '/builders/' + key + '/builds/' + latestBuildNumber; $http.get(latestBuildsPath).then(function(estimationResponse) { @@ -82,6 +85,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) $scope.integrations.push({ name: key, lastBuild: details, + currentBuild: estimationResponse.data, data: value }); } @@ -101,16 +105,17 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) $scope.builds.push({ name: key, lastBuild: details, + currentBuild: estimationResponse.data, data: value, progress: progress, style: progressStyle - }); } else if(key.indexOf("Deploy") > -1) { $scope.deploys.push({ name: key, lastBuild: details, + currentBuild: estimationResponse.data, data: value }); } @@ -118,6 +123,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) $scope.tests.push({ name: key, lastBuild: details, + currentBuild: estimationResponse.data, data: value }); } @@ -125,6 +131,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) $scope.publishings.push({ name: key, lastBuild: details, + currentBuild: estimationResponse.data, data: value }); } @@ -157,6 +164,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) } else { $scope.selected.state = "Idle"; + $scope.selected.class = "hide"; } }; |