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/07/28 22:58:57 UTC
git commit: AMBARI-2753. Security Wizard step 4: no hosts shown when
clicking on the "Start Services"/"Stop Services" link. (Antonenko Alexander
via yusaku)
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 <yu...@hortonworks.com>
Authored: Sun Jul 28 13:58:48 2013 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
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"));
+ }
},
/**