lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From upayav...@apache.org
Subject svn commit: r1707259 - in /lucene/dev/trunk/solr/webapp/web: js/angular/controllers/schema-browser.js partials/schema-browser.html
Date Wed, 07 Oct 2015 11:33:39 GMT
Author: upayavira
Date: Wed Oct  7 11:33:38 2015
New Revision: 1707259

URL: http://svn.apache.org/viewvc?rev=1707259&view=rev
Log:
SOLR-7666 Hide right hand side when no field selected in schema browser

Modified:
    lucene/dev/trunk/solr/webapp/web/js/angular/controllers/schema-browser.js
    lucene/dev/trunk/solr/webapp/web/partials/schema-browser.html

Modified: lucene/dev/trunk/solr/webapp/web/js/angular/controllers/schema-browser.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/js/angular/controllers/schema-browser.js?rev=1707259&r1=1707258&r2=1707259&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/js/angular/controllers/schema-browser.js (original)
+++ lucene/dev/trunk/solr/webapp/web/js/angular/controllers/schema-browser.js Wed Oct  7 11:33:38
2015
@@ -33,6 +33,7 @@ solrAdminApp.controller('SchemaBrowserCo
                     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('SchemaBrowserCo
                         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;

Modified: lucene/dev/trunk/solr/webapp/web/partials/schema-browser.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/partials/schema-browser.html?rev=1707259&r1=1707258&r2=1707259&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/partials/schema-browser.html (original)
+++ lucene/dev/trunk/solr/webapp/web/partials/schema-browser.html Wed Oct  7 11:33:38 2015
@@ -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>
 



Mime
View raw message