Explorar el Código

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

Johan Ahlen hace 9 años
padre
commit
eefbb46
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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) {