Ver código fonte

HUE-9291 [editor] Show a message while waiting for streaming data

Johan Ahlen 5 anos atrás
pai
commit
cd0cd2f237

+ 3 - 0
desktop/core/src/desktop/js/apps/notebook2/components/ko.snippetResults.js

@@ -104,6 +104,9 @@ const TEMPLATE = `
           }
         } --><!-- /ko -->
       </div>
+      <div data-bind="visible: !executing() && !hasData() && streaming()" style="display: none;">
+        <h1 class="empty">${ I18n('Waiting for streaming data...') }</h1>
+      </div>
       <div data-bind="visible: !executing() && !hasData() && !hasResultSet() && status() === 'available' && fetchedOnce()" style="display: none;">
         <h1 class="empty">${ I18n('Success.') }</h1>
       </div>