You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/08/01 20:11:03 UTC

git commit: AMBARI-2779. The number of background operation count in the Background Ops popup does not update automatically in some cases. (Andrii Babiichuk via yusaku)

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 <yu...@hortonworks.com>
Authored: Thu Aug 1 11:10:52 2013 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
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"));