Updated Branches: refs/heads/branch-1.4.3 a9c00323b -> 5bdddee7c
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/5bdddee7 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5bdddee7 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5bdddee7 Branch: refs/heads/branch-1.4.3 Commit: 5bdddee7c14159051fddff788021474746237482 Parents: a9c0032 Author: atkach <[email protected]> Authored: Tue Dec 31 11:06:36 2013 +0200 Committer: atkach <[email protected]> Committed: Tue Dec 31 11:06:48 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/5bdddee7/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 6f22732..03a6bd8 100644 --- a/ambari-web/app/views/main/host/summary.js +++ b/ambari-web/app/views/main/host/summary.js @@ -358,9 +358,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 */
