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/01/05 20:20:58 UTC

[superset] branch hugh/feat-sql-toolbar-r2 updated: dont highlight btn on selection

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

hugh pushed a commit to branch hugh/feat-sql-toolbar-r2
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/hugh/feat-sql-toolbar-r2 by this push:
     new e089768  dont highlight btn on selection
e089768 is described below

commit e089768988f520ad9220cee6a1f0b1db8c19324d
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue Jan 5 15:19:56 2021 -0500

    dont highlight btn on selection
---
 superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx b/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx
index 5bb628d..d41268c 100644
--- a/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx
+++ b/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx
@@ -84,7 +84,6 @@ const RunQueryActionButton = ({
   runQuery,
   stopQuery,
 }: Props) => {
-  const btnStyle = selectedText ? 'warning' : 'primary';
   const shouldShowStopBtn =
     !!queryState && ['running', 'pending'].indexOf(queryState) > -1;
 
@@ -117,7 +116,7 @@ const RunQueryActionButton = ({
               ),
               trigger: 'click',
             }
-          : { buttonStyle: btnStyle })}
+          : { buttonStyle: 'primary' })}
       >
         {buildText(shouldShowStopBtn, selectedText)}
       </ButtonComponent>