Updated Branches: refs/heads/branch-1.2.5 bb2ef05c8 -> 2c465d1b6
AMBARI-2753. Security Wizard step 4: no hosts shown when clicking on the "Start Services"/"Stop Services" link. (Antonenko Alexander 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/2c465d1b Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/2c465d1b Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/2c465d1b Branch: refs/heads/branch-1.2.5 Commit: 2c465d1b63d6913f529fba657f39e9cd3fd769d1 Parents: bb2ef05 Author: Yusaku Sako <[email protected]> Authored: Sun Jul 28 13:58:48 2013 -0700 Committer: Yusaku Sako <[email protected]> Committed: Sun Jul 28 13:58:52 2013 -0700 ---------------------------------------------------------------------- ambari-web/app/utils/host_progress_popup.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/2c465d1b/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 1d300b7..769f568 100644 --- a/ambari-web/app/utils/host_progress_popup.js +++ b/ambari-web/app/utils/host_progress_popup.js @@ -191,12 +191,16 @@ App.HostPopup = Em.Object.create({ * For Background operation popup calculate number of running Operations, and set popup header */ setBackgroundOperationHeader: function () { - var allServices = this.get("servicesInfo"); - var numRunning = 0; - numRunning = allServices.filterProperty("status", App.format.taskStatus("IN_PROGRESS")).length; - numRunning += allServices.filterProperty("status", App.format.taskStatus("QUEUED")).length; - numRunning += allServices.filterProperty("status", App.format.taskStatus("PENDING")).length; - this.set("popupHeaderName", numRunning + Em.I18n.t('hostPopup.header.postFix')); + if (this.get("showServices")) { + var allServices = this.get("servicesInfo"); + var numRunning = 0; + numRunning = allServices.filterProperty("status", App.format.taskStatus("IN_PROGRESS")).length; + numRunning += allServices.filterProperty("status", App.format.taskStatus("QUEUED")).length; + numRunning += allServices.filterProperty("status", App.format.taskStatus("PENDING")).length; + this.set("popupHeaderName", numRunning + Em.I18n.t('hostPopup.header.postFix')); + }else{ + this.set("popupHeaderName", this.get("serviceName")); + } }, /**
