mirror of https://github.com/apache/superset.git
[datasource] Ensure SQL Lab link opens in a new tab (#6195)
This commit is contained in:
parent
1473e2cced
commit
1190ebb1a8
|
@ -127,11 +127,15 @@ class DatasourceControl extends React.PureComponent {
|
|||
placement="right"
|
||||
overlay={
|
||||
<Tooltip id={'datasource-sqllab'}>
|
||||
{t('Run SQL queries against this datasource')}
|
||||
{t('Explore this datasource in SQL Lab')}
|
||||
</Tooltip>
|
||||
}
|
||||
>
|
||||
<a href={'/superset/sqllab?datasourceKey=' + this.props.value}>
|
||||
<a
|
||||
href={`/superset/sqllab?datasourceKey=${this.props.value}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<i className="fa fa-flask m-r-5" />
|
||||
</a>
|
||||
</OverlayTrigger>}
|
||||
|
|
Loading…
Reference in New Issue