ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject ambari git commit: AMBARI-12606 Add ZooKeeper Server action is disabled after filtering on hosts page. (atkach)
Date Fri, 31 Jul 2015 11:47:36 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk dde648d7c -> 8ef130549


AMBARI-12606 Add ZooKeeper Server action is disabled after filtering on hosts page. (atkach)


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

Branch: refs/heads/trunk
Commit: 8ef13054985b69b8d5e44b2e419723b7dc658b33
Parents: dde648d
Author: Andrii Tkach <atkach@hortonworks.com>
Authored: Fri Jul 31 14:47:24 2015 +0300
Committer: Andrii Tkach <atkach@hortonworks.com>
Committed: Fri Jul 31 14:47:24 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/item.js | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8ef13054/ambari-web/app/controllers/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js
index 57bcc44..d12164a 100644
--- a/ambari-web/app/controllers/main/service/item.js
+++ b/ambari-web/app/controllers/main/service/item.js
@@ -49,14 +49,9 @@ App.MainServiceItemController = Em.Controller.extend({
 
   initHosts: function() {
     if (App.get('components.masters').length !== 0) {
-      var self = this;
-
-      var hostNames = App.Host.find().mapProperty('hostName');
-      this.set('allHosts', hostNames);
-
       ['HBASE_MASTER', 'HIVE_METASTORE', 'ZOOKEEPER_SERVER', 'FLUME_HANDLER', 'HIVE_SERVER',
'RANGER_KMS_SERVER', 'NIMBUS'].forEach(function(componentName) {
-        self.loadHostsWithoutComponent(componentName);
-      });
+        this.loadHostsWithoutComponent(componentName);
+      }, this);
     }
   }.observes('App.components.masters', 'content.hostComponents.length'),
 
@@ -64,7 +59,7 @@ App.MainServiceItemController = Em.Controller.extend({
     var self = this;
     var hostsWithComponent = App.HostComponent.find().filterProperty('componentName', componentName).mapProperty('hostName');
 
-    var hostsWithoutComponent = this.get('allHosts').filter(function(hostName) {
+    var hostsWithoutComponent = App.get('allHostNames').filter(function(hostName) {
       return !hostsWithComponent.contains(hostName);
     });
 
@@ -103,8 +98,6 @@ App.MainServiceItemController = Em.Controller.extend({
     return !App.get('services.noConfigTypes').contains(this.get('content.serviceName'));
   }.property('App.services.noConfigTypes','content.serviceName'),
 
-  allHosts: [],
-
   clientComponents: function () {
     var clientNames = [];
     var clients = App.StackServiceComponent.find().filterProperty('serviceName', this.get('content.serviceName')).filterProperty('isClient');


Mime
View raw message