Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 6481861a4 -> 16ee88267


AMBARI-12806. Status marker xpath for components does not update dynamically on 
host details page (akovalenko)


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

Branch: refs/heads/branch-2.1
Commit: 16ee88267d171ee427f059b7d79c54eddf147ec4
Parents: 6481861
Author: Aleksandr Kovalenko <[email protected]>
Authored: Tue Aug 18 15:49:44 2015 +0300
Committer: Aleksandr Kovalenko <[email protected]>
Committed: Tue Aug 18 15:52:13 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/models/host.js             | 2 +-
 ambari-web/app/views/main/host/details.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/16ee8826/ambari-web/app/models/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 53e3472..c268d44 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -272,7 +272,7 @@ App.Host = DS.Model.extend({
         break;
     }
     return output;
-  }.property('notStartedComponents')
+  }.property('passiveState', 'healthClass', 'notStartedComponents.@each')
 });
 
 App.Host.FIXTURES = [];

http://git-wip-us.apache.org/repos/asf/ambari/blob/16ee8826/ambari-web/app/views/main/host/details.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host/details.js 
b/ambari-web/app/views/main/host/details.js
index 2c5cb22..3113135 100644
--- a/ambari-web/app/views/main/host/details.js
+++ b/ambari-web/app/views/main/host/details.js
@@ -62,11 +62,11 @@ App.MainHostDetailsView = Em.View.extend({
     this.set('isLoaded', 
App.Host.find(this.get('content.id')).get('isLoaded'));
     App.router.get('updateController').updateHost(function () {
       self.set('isLoaded', true);
+      App.tooltip($("[rel='HealthTooltip']"));
       if (!self.get('content.isLoaded')) {
         //if host is not existed then route to list of hosts
         App.router.transitionTo('main.hosts.index');
       }
     });
-    App.tooltip($("[rel='HealthTooltip']"));
   }
 });

Reply via email to