Skip to content

Commit b9034e8

Browse files
author
OpenShift Bot
authored
Merge pull request openshift#1830 from spadgett/pod-count-eval-async
Merged by openshift-bot
2 parents 569f20c + f3ec2a5 commit b9034e8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/scripts/directives/podDonut.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ angular.module('openshiftConsole')
3333
var pods = _.reject($scope.pods, { status: { phase: 'Failed' } });
3434
var total = _.size(pods);
3535
if ($scope.mini) {
36-
$scope.total = total;
36+
$scope.$evalAsync(function() {
37+
$scope.total = total;
38+
});
3739
return;
3840
}
3941

dist/scripts/scripts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11472,7 +11472,9 @@ status:{
1147211472
phase:"Failed"
1147311473
}
1147411474
}), c = _.size(b);
11475-
if (a.mini) return void (a.total = c);
11475+
if (a.mini) return void a.$evalAsync(function() {
11476+
a.total = c;
11477+
});
1147611478
var d;
1147711479
d = angular.isNumber(a.desired) && a.desired !== c ? "scaling to " + a.desired + "..." :1 === c ? "pod" :"pods", a.idled ? g.updateDonutCenterText(f[0], "Idle") :g.updateDonutCenterText(f[0], c, d);
1147811480
}

0 commit comments

Comments
 (0)