瀏覽代碼

GH-2331 Query Editor Shows Done 0 results Though Results are available and Loaded on next REST call (#2232)

Akhil S Naik 4 年之前
父節點
當前提交
be2de3068a
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

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

@@ -578,7 +578,12 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
     </div>
 
     <div data-bind="visible: result.hasResultset() && status() == 'available' && result.data().length == 0 && result.fetchedOnce() && result.explanation().length <= 0, css: resultsKlass" style="display:none;">
-      <pre class="margin-top-10 no-margin-bottom"><i class="fa fa-check muted"></i> ${ _("Done. 0 results.") }</pre>
+      <!-- ko if: result.hasMore -->
+        <pre class="margin-top-10 no-margin-bottom"><i class="fa fa-spin fa-spinner"></i> ${ _('Loading...') }</pre>
+      <!-- /ko -->
+      <!-- ko ifnot: result.hasMore -->
+        <pre class="margin-top-10 no-margin-bottom"><i class="fa fa-check muted"></i> ${ _("Done. 0 results.") }</pre>
+      <!-- /ko -->
     </div>
 
     <div data-bind="visible: status() == 'expired', css: resultsKlass" style="display:none;">