소스 검색

HUE-6833 [editor] Disable query builder tab for non-sql editors

Enrico Berti 8 년 전
부모
커밋
edab02addb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 2 - 0
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -663,7 +663,9 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
           </a>
         </li>
         % if ENABLE_QUERY_BUILDER.get():
+        <!-- ko if: isSqlDialect -->
         <li data-bind="click: function(){ currentQueryTab('queryBuilderTab'); }, css: {'active': currentQueryTab() == 'queryBuilderTab'}"><a class="inactive-action" href="#queryBuilderTab" data-toggle="tab">${_('Query Builder')}</a></li>
+        <!-- /ko -->
         % endif
         <!-- ko if: result.hasSomeResults -->
         <li data-bind="click: function(){ currentQueryTab('queryResults'); }, css: {'active': currentQueryTab() == 'queryResults'}">