mirror of https://github.com/apache/lucene.git
SOLR-7666 Hide right hand side when no field selected in schema browser
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1707259 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8ed0a0df8
commit
eaa38915ba
|
@ -33,6 +33,7 @@ solrAdminApp.controller('SchemaBrowserController',
|
|||
var search = $location.search();
|
||||
leftbar = {};
|
||||
$scope.isField = $scope.isDynamicField = $scope.isType = false;
|
||||
$scope.showing = true;
|
||||
if (search.field) {
|
||||
$scope.selectedType = "Field";
|
||||
$scope.is.field = true;
|
||||
|
@ -59,6 +60,8 @@ solrAdminApp.controller('SchemaBrowserController',
|
|||
leftbar.fields = filterFields("fields", data, $scope.name);
|
||||
leftbar.dynamicFields = filterFields("dynamic_fields", data, $scope.name);
|
||||
$scope.fieldOrType = "type=" + $scope.name;
|
||||
} else {
|
||||
$scope.showing = false;
|
||||
}
|
||||
$scope.leftbar = leftbar;
|
||||
$scope.core = $routeParams.core;
|
||||
|
|
|
@ -22,7 +22,7 @@ limitations under the License.
|
|||
|
||||
<div id="field">
|
||||
|
||||
<div class="field-options">
|
||||
<div class="field-options" ng-show="showing">
|
||||
|
||||
<div class="block head">
|
||||
<h2>
|
||||
|
@ -61,7 +61,6 @@ limitations under the License.
|
|||
<thead>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Flags:</td>
|
||||
<th ng-repeat="key in display.columns">{{key.name}}</th>
|
||||
|
||||
|
|
Loading…
Reference in New Issue