Browse Source

HUE-3176 [metastore] Hide the ability to import data into views

Romain Rigaux 9 years ago
parent
commit
53c4fab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/metastore/src/metastore/templates/metastore.mako

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

@@ -466,7 +466,7 @@ ${ assist.assistPanel() }
     <!-- ko with: table -->
 ##     <a class="inactive-action margin-left-10" href="javascript: void(0);"><i class="fa fa-star"></i></a>
     % if has_write_access:
-    <a class="inactive-action margin-left-10" href="#" data-bind="click: showImportData" title="${_('Import Data')}"><i class="fa fa-upload"></i></a>
+    <a class="inactive-action margin-left-10" href="#" data-bind="click: showImportData, visible: tableDetails() && ! tableDetails().is_view" title="${_('Import Data')}"><i class="fa fa-upload"></i></a>
     % endif
     % if USE_NEW_EDITOR.get():
     <a class="inactive-action margin-left-10" data-bind="attr: { 'href': '/metastore/table/'+ database.name + '/' + name + '/read' }" title="${_('Browse Data')}"><i class="fa fa-list"></i></a>