Explorar o código

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

Johan Ahlen %!s(int64=6) %!d(string=hai) anos
pai
achega
e995c4340c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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');
+        }
       }
     });