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:
Upayavira 2015-10-07 11:33:38 +00:00
parent c8ed0a0df8
commit eaa38915ba
2 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,7 @@ solrAdminApp.controller('SchemaBrowserController',
var search = $location.search(); var search = $location.search();
leftbar = {}; leftbar = {};
$scope.isField = $scope.isDynamicField = $scope.isType = false; $scope.isField = $scope.isDynamicField = $scope.isType = false;
$scope.showing = true;
if (search.field) { if (search.field) {
$scope.selectedType = "Field"; $scope.selectedType = "Field";
$scope.is.field = true; $scope.is.field = true;
@ -59,6 +60,8 @@ solrAdminApp.controller('SchemaBrowserController',
leftbar.fields = filterFields("fields", data, $scope.name); leftbar.fields = filterFields("fields", data, $scope.name);
leftbar.dynamicFields = filterFields("dynamic_fields", data, $scope.name); leftbar.dynamicFields = filterFields("dynamic_fields", data, $scope.name);
$scope.fieldOrType = "type=" + $scope.name; $scope.fieldOrType = "type=" + $scope.name;
} else {
$scope.showing = false;
} }
$scope.leftbar = leftbar; $scope.leftbar = leftbar;
$scope.core = $routeParams.core; $scope.core = $routeParams.core;

View File

@ -22,7 +22,7 @@ limitations under the License.
<div id="field"> <div id="field">
<div class="field-options"> <div class="field-options" ng-show="showing">
<div class="block head"> <div class="block head">
<h2> <h2>
@ -61,7 +61,6 @@ limitations under the License.
<thead> <thead>
<tr> <tr>
<td>Flags:</td> <td>Flags:</td>
<th ng-repeat="key in display.columns">{{key.name}}</th> <th ng-repeat="key in display.columns">{{key.name}}</th>