瀏覽代碼

HUE-8399 [editor] Hide the right assistant in embedded mode

This can be re-enabled from the outside by setting window.EMBEDDED_ASSISTANT_ENABLED to true

(cherry picked from commit 19dd0c484345dcc91cf4228e1857164d1c8aac67)
Johan Ahlen 7 年之前
父節點
當前提交
325b11ac12
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/templates/assist.mako

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

@@ -3399,7 +3399,7 @@ from desktop.views import _ko
 
         var updateContentsForType = function (type) {
           self.functionsTabAvailable(type === 'hive' || type === 'impala' || type === 'pig');
-          self.editorAssistantTabAvailable(type === 'hive' || type === 'impala');
+          self.editorAssistantTabAvailable((!window.IS_EMBEDDED || window.EMBEDDED_ASSISTANT_ENABLED) && (type === 'hive' || type === 'impala'));
           self.dashboardAssistantTabAvailable(type === 'dashboard');
           self.schedulesTabAvailable(false);
           if (type !== 'dashboard') {