浏览代码

HUE-7832 [editor] Show query document link with link handle on hover

Romain Rigaux 8 年之前
父节点
当前提交
0c45219
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

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

@@ -211,12 +211,12 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
             </li>
             <li>
               <!-- ko if: IS_HUE_4 -->
-              <a data-bind="publish: { 'assist.show.documents': editorMode() ? 'query-' + editorType() : editorType() }">
+              <a href="javascript:void(0)" data-bind="publish: { 'assist.show.documents': editorMode() ? 'query-' + editorType() : editorType() }">
                 <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> <span data-bind="text: editorMode() ? '${ _ko('Queries') }' : '${ _ko('Notebooks') }'"></span>
               </a>
               <!-- /ko -->
               <!-- ko ifnot: IS_HUE_4 -->
-              <a class="btn" data-bind="hueLink: '${ url('notebook:notebooks') }?type=' + editorType()">
+              <a href="javascript:void(0)" class="btn" data-bind="hueLink: '${ url('notebook:notebooks') }?type=' + editorType()">
                 <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> <span data-bind="text: editorMode() ? '${ _ko('Queries') }' : '${ _ko('Notebooks') }'"></span>
               </a>
               <!-- /ko -->