You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2013/08/12 12:32:10 UTC

git commit: AMBARI-2869 Background Ops popup acts in a strange way. (atkach)

Updated Branches:
  refs/heads/trunk 779879f87 -> 20755818f


AMBARI-2869 Background Ops popup acts in a strange way. (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/20755818
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/20755818
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/20755818

Branch: refs/heads/trunk
Commit: 20755818f021fef6cab88718f5b266a3125801da
Parents: 779879f
Author: atkach <an...@gmail.com>
Authored: Mon Aug 12 13:32:04 2013 +0300
Committer: atkach <an...@gmail.com>
Committed: Mon Aug 12 13:32:04 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/utils/host_progress_popup.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/20755818/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 3872ba4..93e4e6e 100644
--- a/ambari-web/app/utils/host_progress_popup.js
+++ b/ambari-web/app/utils/host_progress_popup.js
@@ -28,6 +28,7 @@ App.HostPopup = Em.Object.create({
   inputData: null,
   serviceName: "",
   currentServiceId: null,
+  previousServiceId: null,
   popupHeaderName: "",
   serviceController: null,
   showServices: false,
@@ -298,7 +299,7 @@ App.HostPopup = Em.Object.create({
       var existedHosts = self.get('hosts');
 
       if (hosts) {
-        if (existedHosts && existedHosts.length === hosts.length) {
+        if (existedHosts && this.get('currentServiceId') === this.get('previousServiceId')) {
           existedHosts.forEach(function (host) {
             var newHostInfo = hosts.findProperty('name', host.get('name'));
             if (newHostInfo) {
@@ -428,6 +429,7 @@ App.HostPopup = Em.Object.create({
             hostsArr.push(hostInfo);
           }, this);
           self.set("hosts", hostsArr);
+          self.set('previousServiceId', this.get('currentServiceId'));
         }
       }
     }