Updated Branches: refs/heads/trunk e871c72f6 -> 0b7be0d3a
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/0b7be0d3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/0b7be0d3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/0b7be0d3 Branch: refs/heads/trunk Commit: 0b7be0d3a0491ee585ba6e59bbb30668384ae310 Parents: e871c72 Author: Yusaku Sako <[email protected]> Authored: Sun Jul 28 13:58:48 2013 -0700 Committer: Yusaku Sako <[email protected]> Committed: Sun Jul 28 13:59:17 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/0b7be0d3/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 cefedf1..b4eb756 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")); + } }, /**
