Apache Lucene open-source search software
SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view. This closes #57
Jan Høydahl1fb4c5d46d6f
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 3011cec8d4e..22d4e99baac 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -175,6 +175,8 @@ Bug Fixes* SOLR-8596: Web UI doesn't correctly generate queries which include local parameters (Alexandre Rafalovitch, janhoy)+* SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view (Alexandre Rafalovitch via janhoy)+Optimizations----------------------diff --git a/solr/webapp/web/js/angular/controllers/cloud.js b/solr/webapp/web/js/angular/controllers/cloud.jsindex c150c5a21ff..2d0dae0860b 100644--- a/solr/webapp/web/js/angular/controllers/cloud.js+++ b/solr/webapp/web/js/angular/controllers/cloud.js@@ -55,6 +55,11 @@ var treeSubController = function($scope, Zookeeper) {var path = data.znode.path.split( '.' );if(path.length >1) {$scope.lang = path.pop();+ } else {+ var lastPathElement = data.znode.path.split( '/' ).pop();+ if (lastPathElement == "managed-schema") {+ $scope.lang = "xml";+ }}$scope.showData = true;});