Explorar o código

HUE-7096 [editor] Still add a new snippet at execution in notebook mode

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

+ 2 - 0
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1569,6 +1569,8 @@ var EditorViewModel = (function() {
         setTimeout(function () {
           self.fetchResultData(rows, false);
         }, 500);
+      } else if (! vm.editorMode() && ! vm.isPresentationMode() && notebook.snippets()[notebook.snippets().length - 1] == self) {
+        notebook.newSnippet();
       }
     };