mirror of
https://github.com/apache/superset.git
synced 2026-04-11 12:26:05 +00:00
[explorev2] making QueryAndSaveBtns disabled while running queries (#1841)
As I altered QueryAndSaveBtns to add the `disabled` prop I also moved it to using react-boostrap
This commit is contained in:
committed by
GitHub
parent
bf67d64708
commit
d929bbfe30
@@ -14,6 +14,7 @@ const propTypes = {
|
||||
form_data: React.PropTypes.object.isRequired,
|
||||
actions: React.PropTypes.object.isRequired,
|
||||
datasource_type: React.PropTypes.string.isRequired,
|
||||
chartStatus: React.PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
|
||||
@@ -94,6 +95,7 @@ class ExploreViewContainer extends React.Component {
|
||||
canAdd="True"
|
||||
onQuery={this.onQuery.bind(this, this.props.form_data)}
|
||||
onSave={this.toggleModal.bind(this)}
|
||||
disabled={this.props.chartStatus === 'loading'}
|
||||
/>
|
||||
<br /><br />
|
||||
<ControlPanelsContainer
|
||||
@@ -121,6 +123,7 @@ function mapStateToProps(state) {
|
||||
return {
|
||||
datasource_type: state.datasource_type,
|
||||
form_data: state.viz.form_data,
|
||||
chartStatus: state.chartStatus,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user