Browse Source

HUE-5497 [editor] Fix JS error on type jar

Enrico Berti 9 năm trước cách đây
mục cha
commit
5d8ea5cd1c

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

@@ -281,8 +281,6 @@ ${ hueIcons.symbols() }
         </div>
         <!-- /ko -->
 
-        &nbsp;&nbsp;&nbsp;
-
         <!-- ko if: editorMode -->
         <a class="btn" href="javascript:void(0)" data-bind="click: function() { newNotebook(true); }, attr: { 'title': '${ _('New ') }' +  editorTypeTitle() + '${ _('Query') }' }" rel="tooltip" data-placement="bottom">
           <i class="fa fa-file-o"></i>
@@ -298,8 +296,6 @@ ${ hueIcons.symbols() }
           <i class="fa fa-tags"></i>
         </a>
 
-        &nbsp;&nbsp;&nbsp;
-
         <a class="btn pointer" title="${ _('Context') }" rel="tooltip" data-placement="bottom" data-bind="css: {'active': $root.isContextPanelVisible }, click: function() { $root.isContextPanelVisible(!$root.isContextPanelVisible()); }">
           <i class="fa fa-cogs"></i>
         </a>
@@ -1511,7 +1507,7 @@ ${ hueIcons.symbols() }
             </div>
           </div>
           <!-- ko template: { if: ['text', 'markdown'].indexOf(type()) == -1, name: 'snippet-execution-status' } --><!-- /ko -->
-          <!-- ko template: { if: $root.editorMode() && ['java', 'spark2', 'distcp', 'shell', 'mapreduce'].indexOf(type()) == -1, name: 'snippet-code-resizer' } --><!-- /ko -->
+          <!-- ko template: { if: $root.editorMode() && ['jar', 'java', 'spark2', 'distcp', 'shell', 'mapreduce'].indexOf(type()) == -1, name: 'snippet-code-resizer' } --><!-- /ko -->
           <!-- ko if: $root.editorMode() -->
           <!-- ko template: 'snippet-log' --><!-- /ko -->
           <!-- ko template: 'query-tabs' --><!-- /ko -->