mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
Explore to SQL Lab (#5101)
* WIP * Working version * Clean code * Fix lint * Fix unit test; show only for sqla * Working on UX * Dropdown working 66% * Working but needs CSS * Fixed table * Fix lint * Fix unit test * Fix languages path * Fixes * Fix Javascript lint
This commit is contained in:
committed by
Maxime Beauchemin
parent
48317fd8f9
commit
c445ef8c43
@@ -224,6 +224,19 @@ class DatasourceControl extends React.PureComponent {
|
||||
/>
|
||||
</a>
|
||||
</OverlayTrigger>
|
||||
{this.props.datasource.type === 'table' &&
|
||||
<OverlayTrigger
|
||||
placement="right"
|
||||
overlay={
|
||||
<Tooltip id={'datasource-sqllab'}>
|
||||
{t('Run SQL queries against this datasource')}
|
||||
</Tooltip>
|
||||
}
|
||||
>
|
||||
<a href={'/superset/sqllab?datasourceKey=' + this.props.value}>
|
||||
<i className="fa fa-flask m-r-5" />
|
||||
</a>
|
||||
</OverlayTrigger>}
|
||||
<Collapse in={this.state.showDatasource}>{this.renderDatasource()}</Collapse>
|
||||
{this.renderModal()}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user