parent
432bdc7e3e
commit
b7bde27b3c
12 changed files with 164 additions and 149 deletions
|
@ -11,10 +11,10 @@ angular.module('quay').directive('buildStateIcon', function () {
|
|||
scope: {
|
||||
'build': '=build'
|
||||
},
|
||||
controller: function($scope, $element) {
|
||||
controller: function($scope, $element, BuildService) {
|
||||
$scope.isBuilding = function(build) {
|
||||
if (!build) { return true; }
|
||||
return build.phase != 'complete' && build.phase != 'error';
|
||||
return BuildService.isActive(build);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Reference in a new issue