You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2021/12/16 20:28:18 UTC

[superset] 01/01: lit

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch rm-pg-bar
in repository https://gitbox.apache.org/repos/asf/superset.git

commit ad37d856b72cb11262b22d0e11eee81cd49a9629
Author: hughhhh <hu...@gmail.com>
AuthorDate: Thu Dec 16 15:26:59 2021 -0500

    lit
---
 .../src/SqlLab/components/ResultSet/index.tsx              | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
index 770b789..7dc9ec1 100644
--- a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
+++ b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
@@ -801,16 +801,7 @@ export default class ResultSet extends React.PureComponent<
         );
       }
     }
-    let progressBar;
     let trackingUrl;
-    if (query.progress > 0) {
-      progressBar = (
-        <ProgressBar
-          percent={parseInt(query.progress.toFixed(0), 10)}
-          striped
-        />
-      );
-    }
     if (query.trackingUrl) {
       trackingUrl = (
         <Button
@@ -827,12 +818,13 @@ export default class ResultSet extends React.PureComponent<
         : null;
     return (
       <div style={LOADING_STYLES}>
-        <div>{!progressBar && <Loading position="normal" />}</div>
+        <div>
+          <Loading position="normal" />
+        </div>
         <QueryStateLabel query={query} />
         <div>
           {progressMsg && <Alert type="success" message={progressMsg} />}
         </div>
-        <div>{progressBar}</div>
         <div>{trackingUrl}</div>
       </div>
     );