risdenk commented on code in PR #745:
URL: https://github.com/apache/solr/pull/745#discussion_r916263009


##########
solr/webapp/web/js/angular/controllers/collections.js:
##########
@@ -23,6 +23,18 @@ solrAdminApp.controller('CollectionsController',
 
           $scope.rootUrl = Constants.ROOT_URL + "#/~collections/" + 
$routeParams.collection;
 
+          Zookeeper.liveNodes({}, function(data) {
+            $scope.nodes = [];
+            var children = data.tree[0].children;
+            for (var child in children) {
+              $scope.nodes.push(children[child].text);
+            }
+            $scope.availableNodeSet = [];
+            for (var i in $scope.nodes) {

Review Comment:
   Do we need to push this to `$scope.nodes` first? Seems like could just push 
`children[child].text` to `$scope.availableNodeSet`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to