mirror of https://github.com/apache/lucene.git
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:
parent
0f26f11f6c
commit
46e183deea
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue