소스 검색

HUE-9028 [editor] Switch to the result tab after the active executable has results available

Johan Ahlen 6 년 전
부모
커밋
e995c4340c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      desktop/core/src/desktop/js/apps/notebook2/snippet.js

+ 3 - 0
desktop/core/src/desktop/js/apps/notebook2/snippet.js

@@ -1011,6 +1011,9 @@ export default class Snippet {
     huePubSub.subscribe(EXECUTABLE_UPDATED_EVENT, executable => {
       if (this.activeExecutable() === executable) {
         this.status(executable.status);
+        if (executable.result) {
+          this.currentQueryTab('queryResults');
+        }
       }
     });