浏览代码

HUE-6959 [assist] Fix collection opening from left assist

Enrico Berti 8 年之前
父节点
当前提交
6de1d26995
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      desktop/core/src/desktop/templates/assist.mako

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

@@ -1356,14 +1356,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
         huePubSub.subscribe('assist.clickCollectionItem', function (entry) {
           % if ENABLE_NEW_INDEXER.get():
           if (IS_HUE_4) {
-            huePubSub.subscribeOnce('app.gained.focus', function(app){
-              if (app === 'indexes'){
-                window.setTimeout(function(){
-                  huePubSub.publish('open.index', entry.definition.name);
-                }, 0)
-              }
-            });
-            huePubSub.publish('open.link', '/indexer/indexes/');
+            huePubSub.publish('open.link', '/indexer/indexes/' + entry.definition.name);
           }
           else {
             window.open('/indexer/indexes/' + entry.definition.name);