Răsfoiți Sursa

[notebook] Don't automatically add a new snippet after execution of SQL type snippets

While testing the Hive and Impala editors I found it annoying that focus was moved to a new snippet after execute, especially as the snippet is added after the result table/graph.
Johan Ahlen 10 ani în urmă
părinte
comite
c6bda77

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

@@ -501,7 +501,7 @@
         setTimeout(function () {
           self.fetchResultData(rows, false);
         }, 500);
-      } else if (notebook.snippets()[notebook.snippets().length - 1] == self) {
+      } else if (! self.isSqlDialect() && notebook.snippets()[notebook.snippets().length - 1] == self) {
         notebook.newSnippet();
       }
     };