SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view. This closes #57

(cherry picked from commit 1fb4c5d)
This commit is contained in:
Jan Høydahl 2016-07-29 00:03:24 +02:00
parent 0f26f11f6c
commit 46e183deea
2 changed files with 7 additions and 0 deletions

View File

@ -141,6 +141,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
----------------------

View File

@ -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;
});