浏览代码

[assist] Only show the documents in assist when the new editor is used

Johan Ahlen 9 年之前
父节点
当前提交
eefbb467f6
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      desktop/core/src/desktop/templates/assist.mako

+ 5 - 0
desktop/core/src/desktop/templates/assist.mako

@@ -1034,6 +1034,10 @@ from desktop.views import _ko
             minHeight: 50,
             visible: params.visibleAssistPanels && params.visibleAssistPanels.indexOf('hdfs') !== -1
           }));
+          <%
+            from beeswax.conf import USE_NEW_EDITOR
+          %>
+          % if USE_NEW_EDITOR.get():
           self.availablePanels.push(new AssistInnerPanel({
             panelData: new AssistDocumentsPanel({
               assistHelper: self.assistHelper,
@@ -1046,6 +1050,7 @@ from desktop.views import _ko
             minHeight: 50,
             visible: params.visibleAssistPanels && params.visibleAssistPanels.indexOf('documents') !== -1
           }));
+          % endif
         }
 
         if (self.availablePanels.length == 1) {