ソースを参照

HUE-3780 [metastore] Hide refresh stats button if user does not have the permissions on col stats

Johan Ahlen 9 年 前
コミット
60c6655b82
1 ファイル変更4 行追加1 行削除
  1. 4 1
      desktop/core/src/desktop/templates/table_stats.mako

+ 4 - 1
desktop/core/src/desktop/templates/table_stats.mako

@@ -84,7 +84,10 @@ from desktop.views import _ko
       <div class="arrow" data-bind="style: { 'top': $parent.popoverArrowTop() + 'px'}"></div>
       <h3 class="popover-title" style="text-align: left">
         <a class="pull-right pointer close-popover" style="margin-left: 8px" data-bind="click: $parent.toggleStats"><i class="fa fa-times"></i></a>
-        <a class="pull-right pointer stats-refresh" style="margin-left: 8px" data-bind="visible: !isComplexType && !isView, click: refresh"><i class="fa fa-refresh" data-bind="css: { 'fa-spin' : refreshing }"></i></a> <i data-bind="visible: loadingStats" class='fa fa-spinner fa-spin'></i>
+        <!-- ko if: activeTab() === 'analysis' && !isComplexType && !isView -->
+        <a class="pull-right pointer stats-refresh" style="margin-left: 8px" data-bind="click: refresh"><i class="fa fa-refresh" data-bind="css: { 'fa-spin' : refreshing }"></i></a>
+        <!-- /ko -->
+        <i data-bind="visible: loadingStats" class='fa fa-spinner fa-spin'></i>
         <!-- ko if: column == null -->
         <strong class="table-name" data-bind="text: table"></strong> ${ _(' table') }
         <!-- /ko -->