Browse Source

HUE-8378 [metastore] Add a privileges section to the table browser

Enrico Berti 7 years ago
parent
commit
7df1e0c6c2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      apps/metastore/src/metastore/templates/metastore.mako

+ 5 - 0
apps/metastore/src/metastore/templates/metastore.mako

@@ -918,6 +918,7 @@ ${ components.menubar(is_embeddable) }
     <li data-bind="css: { 'active' : $root.currentTab() === 'viewSql' }"><a href="javascript: void(0);" data-bind="click: function() { $root.currentTab('viewSql'); }">${ _('View SQL') }</a></li>
     <!-- /ko -->
     <li data-bind="css: { 'active' : $root.currentTab() === 'details' }"><a href="javascript: void(0);" data-bind="click: function() { $root.currentTab('details'); }">${ _('Details') }</a></li>
+    <li data-bind="css: { 'active' : $root.currentTab() === 'privileges' }"><a href="javascript: void(0);" data-bind="click: function() { $root.currentTab('privileges'); }">${ _('Privileges') }</a></li>
   </ul>
 
   <div class="tab-content margin-top-10" style="border: none; overflow: hidden">
@@ -953,6 +954,10 @@ ${ components.menubar(is_embeddable) }
       <!-- ko if: $root.currentTab() === 'details' -->
         <!-- ko template: 'metastore-details-tab' --><!-- /ko -->
       <!-- /ko -->
+
+      <!-- ko if: $root.currentTab() === 'privileges' -->
+        <div data-bind="component: { name: 'hue-sentry-privileges', params: { isSentryAdmin: true, server: 'server1', path: catalogEntry.path.join('.')}}"></div>
+      <!-- /ko -->
     </div>
   </div>
 </script>