瀏覽代碼

HUE-8703 [editor] Clear the URL parameters when creating a new editor

Johan Ahlen 6 年之前
父節點
當前提交
8b99e35c68
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

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

@@ -340,7 +340,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
         <ul class="dropdown-menu pull-right">
         <ul class="dropdown-menu pull-right">
           <li>
           <li>
           <!-- ko if: editorMode -->
           <!-- ko if: editorMode -->
-            <a href="javascript:void(0)" data-bind="click: function() { newNotebook($root.editorType(), null, selectedNotebook() ? $root.selectedNotebook().snippets()[0].currentQueryTab() : null); }, attr: { 'title': '${ _('New ') }' +  editorTypeTitle() + '${ _(' Query') }' }">
+            <a href="javascript:void(0)" data-bind="click: function() { hueUtils.removeURLParameter('editor'); newNotebook($root.editorType(), null, selectedNotebook() ? $root.selectedNotebook().snippets()[0].currentQueryTab() : null); }, attr: { 'title': '${ _('New ') }' +  editorTypeTitle() + '${ _(' Query') }' }">
               <i class="fa fa-fw fa-file-o"></i> ${ _('New') }
               <i class="fa fa-fw fa-file-o"></i> ${ _('New') }
             </a>
             </a>
           <!-- /ko -->
           <!-- /ko -->