소스 검색

[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 년 전
부모
커밋
c6bda77
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 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();
       }
     };