[sqllab] making 'click to retrieve results' a button (#1737)

This commit is contained in:
Maxime Beauchemin 2016-12-03 20:09:09 -08:00 committed by GitHub
parent a3106bcb3d
commit c4e943a24f

View File

@ -211,12 +211,13 @@ class ResultSet extends React.PureComponent {
}
if (query.cached) {
return (
<a
href="#"
<Button
bsSize="sm"
bsStyle="primary"
onClick={this.reFetchQueryResults.bind(this, query)}
>
click to retrieve results
</a>
Fetch data preview
</Button>
);
}
return (<Alert bsStyle="warning">The query returned no data</Alert>);