Explorar o código

HUE-7420 [editor] Open correct mini browser tab depending on the type of query

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
8ff5b69

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -597,7 +597,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
       <ul data-bind="visible: jobs().length > 0, foreach: jobs" class="unstyled jobs-overlay">
         <li data-bind="attr: {'id': $data.name.substr(4)}">
           %if is_embeddable:
-            <a class="pointer" data-bind="text: $.trim($data.name), click: function() { huePubSub.publish('show.jobs.panel', {id: $data.name, interface: 'queries'}); }, clickBubble: false"></a>
+            <a class="pointer" data-bind="text: $.trim($data.name), click: function() { huePubSub.publish('show.jobs.panel', {id: $data.name, interface: $parent.type() == 'impala' ? 'queries' : 'jobs'}); }, clickBubble: false"></a>
           %else:
             <a data-bind="text: $.trim($data.name), hueLink: $data.url"></a>
           %endif