diff --git a/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx b/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx index 7307dd316ac..6daba5857e7 100644 --- a/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx +++ b/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx @@ -1,6 +1,6 @@ import React from 'react'; import { - Button, + Button as BootstrapButton, ButtonGroup, Col, FormGroup, @@ -14,6 +14,8 @@ import { Collapse, } from 'react-bootstrap'; +import Button from '../../components/Button'; + import SouthPane from './SouthPane'; import Timer from '../../components/Timer'; import SqlEditorLeftBar from './SqlEditorLeftBar'; @@ -111,7 +113,7 @@ class SqlEditor extends React.PureComponent { } if (this.props.database && this.props.database.allow_run_sync) { runButtons.push( - + ); } if (this.props.database && this.props.database.allow_run_async) { + const asyncToolTip = 'Run query asynchronously'; runButtons.push( @@ -147,14 +151,14 @@ class SqlEditor extends React.PureComponent { ['running', 'pending'].indexOf(this.props.latestQuery.state) > -1) { runButtons = ( - + ); } @@ -175,6 +179,7 @@ class SqlEditor extends React.PureComponent { } let ctasControls; if (this.props.database && this.props.database.allow_ctas) { + const ctasToolTip = 'Create table as with query results'; ctasControls = ( @@ -190,6 +195,7 @@ class SqlEditor extends React.PureComponent { bsSize="small" disabled={this.state.ctas.length === 0} onClick={this.createTableAs.bind(this)} + tooltip={ctasToolTip} > CTAS