@@ -64,7 +64,6 @@ angular.module('openshiftConsole')
64
64
AlertMessageService . clearAlerts ( ) ;
65
65
66
66
var watches = [ ] ;
67
- var hashSize = $filter ( 'hashSize' ) ;
68
67
69
68
ProjectsService
70
69
. get ( $routeParams . project )
@@ -104,6 +103,8 @@ angular.module('openshiftConsole')
104
103
105
104
106
105
watches . push ( DataService . watch ( "replicationcontrollers" , context , function ( deployments , action , deployment ) {
106
+ var deploymentConfigName = $routeParams . deploymentconfig ;
107
+
107
108
// TODO we should add this back in and show the pod template on this page
108
109
// extractPodTemplates();
109
110
// ImageStreamResolver.fetchReferencedImageStreamImages($scope.podTemplates, $scope.imagesByDockerReference, $scope.imageStreamImageRefByDockerReference, $scope);
@@ -118,7 +119,6 @@ angular.module('openshiftConsole')
118
119
$scope . deploymentConfigDeploymentsInProgress = DeploymentsService . associateRunningDeploymentToDeploymentConfig ( deploymentsByDeploymentConfig ) ;
119
120
} else if ( DeploymentsService . deploymentBelongsToConfig ( deployment , $routeParams . deploymentconfig ) ) {
120
121
var deploymentName = deployment . metadata . name ;
121
- var deploymentConfigName = $routeParams . deploymentconfig ;
122
122
switch ( action ) {
123
123
case 'ADDED' :
124
124
case 'MODIFIED' :
@@ -142,6 +142,8 @@ angular.module('openshiftConsole')
142
142
}
143
143
144
144
$scope . deployments = LabelFilter . getLabelSelector ( ) . select ( $scope . unfilteredDeployments ) ;
145
+ $scope . deploymentInProgress = ! ! _ . size ( $scope . deploymentConfigDeploymentsInProgress [ deploymentConfigName ] ) ;
146
+
145
147
updateFilterWarning ( ) ;
146
148
LabelFilter . addLabelSuggestionsFromResources ( $scope . unfilteredDeployments , $scope . labelSuggestions ) ;
147
149
LabelFilter . setLabelSuggestions ( $scope . labelSuggestions ) ;
@@ -184,8 +186,6 @@ angular.module('openshiftConsole')
184
186
updateHPAWarnings ( ) ;
185
187
} ) ;
186
188
187
-
188
-
189
189
watches . push ( DataService . watch ( "imagestreams" , context , function ( imageStreams ) {
190
190
$scope . imageStreams = imageStreams . by ( "metadata.name" ) ;
191
191
ImageStreamResolver . buildDockerRefMapForImageStreams ( $scope . imageStreams , $scope . imageStreamImageRefByDockerReference ) ;
@@ -239,8 +239,7 @@ angular.module('openshiftConsole')
239
239
return false ;
240
240
}
241
241
242
- if ( $scope . deploymentConfigDeploymentsInProgress &&
243
- hashSize ( $scope . deploymentConfigDeploymentsInProgress [ $scope . deploymentConfig . metadata . name ] ) > 0 ) {
242
+ if ( $scope . deploymentInProgress ) {
244
243
return false ;
245
244
}
246
245
0 commit comments