Browse Source

HUE-6931 [indexes] Hide table headers when tables are empty

Enrico Berti 8 years ago
parent
commit
916dd4f447
1 changed files with 4 additions and 0 deletions
  1. 4 0
      desktop/libs/indexer/src/indexer/templates/indexes.mako

+ 4 - 0
desktop/libs/indexer/src/indexer/templates/indexes.mako

@@ -398,6 +398,7 @@ ${ assist.assistPanel() }
   <div>
     <!-- ko template: { name: 'indexes-index-fields-fields', data: filteredFields }--><!-- /ko -->
 
+    <!-- ko if: copyFields() && copyFields().length > 0 -->
     <h4>${ _('Copy Fields') }</h4>
     <table class="table table-condensed table-nowrap sample-table">
       <thead>
@@ -415,9 +416,12 @@ ${ assist.assistPanel() }
         <!-- /ko -->
       </tbody>
     </table>
+    <!-- /ko -->
 
+    <!-- ko if: dynamicFields() && dynamicFields().length > 0 -->
     <h4>${ _('Dynamic Fields') }</h4>
     <!-- ko template: { name: 'indexes-index-fields-fields', data: dynamicFields }--><!-- /ko -->
+    <!-- /ko -->
   </div>
 </script>