Ver Fonte

HUE-5329 [metastore] In columns section, we show "view more" when there are no extra rows

Adrian Yavorskyy há 8 anos atrás
pai
commit
47f13c9
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      apps/metastore/src/metastore/templates/metastore.mako

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

@@ -638,7 +638,7 @@ ${ components.menubar() }
     <!-- ko template: "metastore-columns-table" --><!-- /ko -->
     <!-- /ko -->
 
-    <a class="pointer" data-bind="visible: columns().length >= 3, click: function() { $('li a[href=\'#columns\']').click(); }">
+    <a class="pointer" data-bind="visible: columns().length > favouriteColumns().length, click: function() { $('li a[href=\'#columns\']').click(); }">
       ${_('View more...')}
     </a>
   </div>