Updated Branches:
  refs/heads/trunk 713f6ca9f -> adff07575

AMBARI-3052. After NameNode HA is enabled, hide the button to enable it in 
Admin > High Availability. (akovalenko via yusaku)


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

Branch: refs/heads/trunk
Commit: adff075757991e5ec253213a1351244e5b230ecf
Parents: 713f6ca
Author: Yusaku Sako <[email protected]>
Authored: Thu Aug 29 18:47:12 2013 +0300
Committer: Yusaku Sako <[email protected]>
Committed: Thu Aug 29 18:47:12 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/admin/highAvailability_view.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/adff0757/ambari-web/app/views/main/admin/highAvailability_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/admin/highAvailability_view.js 
b/ambari-web/app/views/main/admin/highAvailability_view.js
index 89e8cac..c8d4cfa 100644
--- a/ambari-web/app/views/main/admin/highAvailability_view.js
+++ b/ambari-web/app/views/main/admin/highAvailability_view.js
@@ -25,6 +25,8 @@ App.MainAdminHighAvailabilityView = Em.View.extend({
     this.get('controller').setSecurityStatus();
   },
 
-  isHighAvailabilityEnabled: false //todo: real check
+  isHighAvailabilityEnabled: function () {
+    return !App.HostComponent.find().someProperty('componentName', 
'SECONDARY_NAMENODE');
+  }.property()
 
 });

Reply via email to