Selaa lähdekoodia

[metastore] Fix table samples tab

Johan Ahlen 10 vuotta sitten
vanhempi
commit
c0c8bc4
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      apps/metastore/src/metastore/templates/metastore.mako

+ 3 - 3
apps/metastore/src/metastore/templates/metastore.mako

@@ -551,9 +551,9 @@ ${ assist.assistPanel() }
     <div class="tab-pane" id="sample">
       <!-- ko with: samples -->
       <!-- ko if: loaded -->
-      <!-- ko template: { if: rows.length, name: 'metastore-samples-table' } --><!-- /ko -->
-      <span data-bind="visible: !rows.length && metastoreTable.tableDetails().is_view" style="display: none;">${ _('The view does not contain any data') }</span>
-      <span data-bind="visible: !rows.length && !metastoreTable.tableDetails().is_view" style="display: none;">${ _('The table does not contain any data') }</span>
+      <!-- ko template: { if: rows().length, name: 'metastore-samples-table' } --><!-- /ko -->
+      <span data-bind="visible: !rows().length && metastoreTable.tableDetails().is_view" style="display: none;">${ _('The view does not contain any data') }</span>
+      <span data-bind="visible: !rows().length && !metastoreTable.tableDetails().is_view" style="display: none;">${ _('The table does not contain any data') }</span>
       <!-- /ko -->
       <!-- /ko -->
     </div>