Updated Branches:
  refs/heads/trunk d1f17bff0 -> 2b21ff7ed

AMBARI-4202 Action buttons are disabled on Host Details page even though 
heartbeat is not lost. (atkach)


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

Branch: refs/heads/trunk
Commit: 2b21ff7edcc572a236ee605aa923c98c5b49a3eb
Parents: d1f17bf
Author: atkach <[email protected]>
Authored: Tue Dec 31 11:05:55 2013 +0200
Committer: atkach <[email protected]>
Committed: Tue Dec 31 11:05:55 2013 +0200

----------------------------------------------------------------------
 ambari-web/app/views/main/host/summary.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2b21ff7e/ambari-web/app/views/main/host/summary.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host/summary.js 
b/ambari-web/app/views/main/host/summary.js
index 6e8891e..211e065 100644
--- a/ambari-web/app/views/main/host/summary.js
+++ b/ambari-web/app/views/main/host/summary.js
@@ -360,9 +360,9 @@ App.MainHostSummaryView = Em.View.extend({
       return 'health-status-' + 
App.HostComponentStatus.getKeyName(this.get('workStatus'));
     }.property('workStatus', 'isDataNodeRecommissionAvailable', 
'this.content.isDecommissioning'),
 
-    disabled: function() {
-      return this.get('parentView.content.isNotHeartBeating')?'disabled':'';
-    }.property('parentView.content.isNotHeartBeating'),
+    disabled: function () {
+      return (this.get('parentView.content.healthClass') === 
"health-status-DEAD-YELLOW") ? 'disabled' : '';
+    }.property('parentView.content.healthClass'),
     /**
      * For Upgrade failed state
      */

Reply via email to