mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
Added Alert for ControlPanel and ChartContainer (#1626)
* Added Alert for ControlPanel and ChartContainer Done: - Add alert for Control Panel when fetch_datasource_metadata failes - Add alert for Chart Container when update_explore query fails * Changed color to warning-yellow * Solve linter issue * Fixed indent and delete error_redirect
This commit is contained in:
@@ -41,6 +41,9 @@ class ExploreViewContainer extends React.Component {
|
||||
|
||||
const params = $.param(data, true);
|
||||
this.updateUrl(params);
|
||||
// remove alerts when query
|
||||
this.props.actions.removeControlPanelAlert();
|
||||
this.props.actions.removeChartAlert();
|
||||
}
|
||||
|
||||
getHeight() {
|
||||
@@ -85,6 +88,7 @@ class ExploreViewContainer extends React.Component {
|
||||
<ChartContainer
|
||||
actions={this.props.actions}
|
||||
height={this.state.height}
|
||||
actions={this.props.actions}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user