Explorar o código

[metastore] Fix table samples tab

Johan Ahlen %!s(int64=10) %!d(string=hai) anos
pai
achega
c0c8bc4
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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>