Pārlūkot izejas kodu

HUE-3761 [editor] Showing the logs should trigger refresh for table headers

Enrico Berti 9 gadi atpakaļ
vecāks
revīzija
dfafd69b98

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

@@ -437,6 +437,7 @@
       }
     });
     self.showLogs.subscribe(function (val) {
+      huePubSub.publish('redraw.fixed.headers');
       if (val) {
         self.getLogs();
       }

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -991,7 +991,7 @@ ${ hueIcons.symbols() }
 </script>
 
 <script type="text/html" id="snippet-log">
-  <div class="snippet-log-container margin-bottom-10" data-bind="slideVisible: showLogs() && status() != 'ready' && status() != 'loading', onComplete: function(){ redrawFixedHeaders(200); }" style="display: none;">
+  <div class="snippet-log-container margin-bottom-10" data-bind="visible: showLogs() && status() != 'ready' && status() != 'loading'" style="display: none;">
     <div data-bind="delayedOverflow, css: resultsKlass" style="margin-top: 5px; position: relative;">
       <ul data-bind="visible: jobs().length > 0, foreach: jobs" class="unstyled jobs-overlay">
         <li><a data-bind="text: $.trim($data.name), attr: { href: $data.url }" target="_blank"></a></li>