Sfoglia il codice sorgente

HUE-7783 [editor] Add log toggling functionality to the presentation mode

Enrico Berti 8 anni fa
parent
commit
e793c87

+ 1 - 3
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1689,9 +1689,7 @@ var EditorViewModel = (function() {
         if (self.statusForButtons() == 'canceling' || self.status() == 'canceled') {
           // Query was canceled in the meantime, do nothing
         } else {
-          if (vm.editorMode()) {
-            self.getLogs();
-          }
+          self.getLogs();
           self.result.endTime(new Date());
 
           if (data.status === 0) {

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

@@ -930,7 +930,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
           </div>
           <!-- ko template: { if: ['text', 'markdown'].indexOf(type()) == -1, name: 'snippet-execution-status${ suffix }' } --><!-- /ko -->
           <!-- ko template: { if: $root.editorMode() && ! $root.isResultFullScreenMode() && ['jar', 'java', 'spark2', 'distcp', 'shell', 'mapreduce'].indexOf(type()) == -1, name: 'snippet-code-resizer${ suffix }' } --><!-- /ko -->
-          <!-- ko if: ! $root.isPresentationMode() && ! $root.isResultFullScreenMode() -->
+          <!-- ko if: !$root.isResultFullScreenMode() -->
             <!-- ko template: 'snippet-log${ suffix }' --><!-- /ko -->
           <!-- /ko -->
           <!-- ko if: $root.editorMode() -->