|
|
@@ -29,6 +29,7 @@ import { EXECUTABLE_UPDATED_EVENT, EXECUTION_STATUS } from 'apps/notebook2/execu
|
|
|
import { RESULT_TYPE, RESULT_UPDATED_EVENT } from 'apps/notebook2/execution/executionResult';
|
|
|
import { attachTracker } from 'apps/notebook2/components/executableStateHandler';
|
|
|
import { defer } from 'utils/hueUtils';
|
|
|
+import { CURRENT_QUERY_TAB_SWITCHED_EVENT } from 'apps/notebook2/snippet';
|
|
|
|
|
|
export const NAME = 'snippet-results';
|
|
|
|
|
|
@@ -160,6 +161,14 @@ class SnippetResults extends DisposableComponent {
|
|
|
this.hasMore = ko.observable();
|
|
|
this.hasResultSet = ko.observable();
|
|
|
|
|
|
+ this.subscribe(CURRENT_QUERY_TAB_SWITCHED_EVENT, queryTab => {
|
|
|
+ if (queryTab === 'queryResults') {
|
|
|
+ defer(() => {
|
|
|
+ huePubSub.publish(REDRAW_FIXED_HEADERS_EVENT);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
this.executing = ko.pureComputed(() => this.status() === EXECUTION_STATUS.running);
|
|
|
|
|
|
this.hasSomeResult = ko.pureComputed(() => this.data().length);
|