瀏覽代碼

HUE-8293 [metastore] Limit column popularity to be at least 5%

Romain Rigaux 7 年之前
父節點
當前提交
d5586a34bb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/templates/ko_components/ko_catalog_entries_table.mako

+ 1 - 1
desktop/core/src/desktop/templates/ko_components/ko_catalog_entries_table.mako

@@ -169,7 +169,7 @@ from desktop.views import _ko
               <!-- ko if: isKey -->
               <!-- ko if: isKey -->
               &nbsp;<i class="fa fa-key" data-bind="tooltip: { title: keyText, html: true }"></i>
               &nbsp;<i class="fa fa-key" data-bind="tooltip: { title: keyText, html: true }"></i>
               <!-- /ko -->
               <!-- /ko -->
-              <!-- ko if: popularity -->
+              <!-- ko if: popularity && popularity() >= 5 -->
               &nbsp;<i data-bind="tooltip: { title: '${ _ko("Popularity") }: ' + popularity() + '%' }" class="fa fa-star-o"></i>
               &nbsp;<i data-bind="tooltip: { title: '${ _ko("Popularity") }: ' + popularity() + '%' }" class="fa fa-star-o"></i>
               <!-- /ko -->
               <!-- /ko -->
             </a>
             </a>