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:
Beto Dealmeida
2018-07-16 15:00:48 -07:00
committed by Maxime Beauchemin
parent 48317fd8f9
commit c445ef8c43
15 changed files with 152 additions and 37 deletions

View File

@@ -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>