Ver código fonte

HUE-7260 [assist] Disable "Open in importer" option for folders in HDFS

Enrico Berti 8 anos atrás
pai
commit
60d4988a09
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      desktop/core/src/desktop/templates/assist.mako

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -168,7 +168,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
 
   <script type="text/html" id="hdfs-context-items">
     <li><a href="javascript:void(0);" data-bind="hueLink: definition.url"><i class="fa fa-fw" data-bind="css: {'fa-folder-open-o': definition.type === 'dir', 'fa-file-text-o': definition.type === 'file'}"></i> ${ _('Open in File Browser') }</a></li>
-    <!-- ko if: IS_HUE_4 -->
+    <!-- ko if: IS_HUE_4 && definition.type === 'file' -->
     <li><a href="javascript:void(0);" data-bind="click: openInImporter"><!-- ko template: { name: 'app-icon-template', data: { icon: 'importer' } } --><!-- /ko --> ${ _('Open in Importer') }</a></li>
     <!-- /ko -->
     <!-- ko if: $currentApp() === 'editor' -->