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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to