Updated Branches: refs/heads/trunk 7cf3f1d2e -> 064c7d9de
AMBARI-2779. The number of background operation count in the Background Ops popup does not update automatically in some cases. (Andrii Babiichuk via yusaku) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/064c7d9d Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/064c7d9d Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/064c7d9d Branch: refs/heads/trunk Commit: 064c7d9de58b358124c9c6e6dd91f6686dcccd7d Parents: 7cf3f1d Author: Yusaku Sako <[email protected]> Authored: Thu Aug 1 11:10:52 2013 -0700 Committer: Yusaku Sako <[email protected]> Committed: Thu Aug 1 11:10:52 2013 -0700 ---------------------------------------------------------------------- ambari-web/app/utils/host_progress_popup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/064c7d9d/ambari-web/app/utils/host_progress_popup.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/utils/host_progress_popup.js b/ambari-web/app/utils/host_progress_popup.js index 41297fb..f26c778 100644 --- a/ambari-web/app/utils/host_progress_popup.js +++ b/ambari-web/app/utils/host_progress_popup.js @@ -192,8 +192,7 @@ App.HostPopup = Em.Object.create({ */ setBackgroundOperationHeader: function () { if (this.get("showServices")) { - var numRunning = this.get('categories').findProperty("value", 'pending').get("count"); - numRunning += this.get('categories').findProperty("value", 'in_progress').get("count"); + var numRunning = App.router.get('backgroundOperationsController.allOperationsCount'); this.set("popupHeaderName", numRunning + Em.I18n.t('hostPopup.header.postFix')); } else { this.set("popupHeaderName", this.get("serviceName"));
