Updated Branches:
  refs/heads/trunk 76daacf0f -> a0993a734

AMBARI-3182 UI background operations Javascript parser is much slower when 
dialog is showing, second patch. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/a0993a73
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/a0993a73
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/a0993a73

Branch: refs/heads/trunk
Commit: a0993a734c6fc30d0f582f7df2956da40b04ea16
Parents: 76daacf
Author: atkach <[email protected]>
Authored: Thu Sep 12 12:28:40 2013 +0300
Committer: atkach <[email protected]>
Committed: Thu Sep 12 12:28:40 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/utils/host_progress_popup.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/a0993a73/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 60a8956..bede1d4 100644
--- a/ambari-web/app/utils/host_progress_popup.js
+++ b/ambari-web/app/utils/host_progress_popup.js
@@ -292,8 +292,15 @@ App.HostPopup = Em.Object.create({
           hostsData = hostsData.findProperty("name", this.get("serviceName"));
         }
 
-        if (hostsData && hostsData.hostsMap) {
-          hostsMap = hostsData.hostsMap;
+        if (hostsData) {
+          if (hostsData.hostsMap) {
+            hostsMap = hostsData.hostsMap;
+          } else if (hostsData.hosts) {
+            //hosts data come from wizard as array
+            hostsData.hosts.forEach(function (_host) {
+              hostsMap[_host.name] = _host;
+            });
+          }
         }
       }
       var existedHosts = self.get('hosts');

Reply via email to