mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
[dashboard] give user feedback when there are unsaved changes (#1633)
* show alert and use dialog window if there are unsaved changes. * add container class to alert
This commit is contained in:
@@ -59,6 +59,7 @@ class Controls extends React.PureComponent {
|
||||
data: JSON.stringify(data),
|
||||
},
|
||||
success() {
|
||||
dashboard.onSave();
|
||||
showModal({
|
||||
title: 'Success',
|
||||
body: 'This dashboard was saved successfully.',
|
||||
@@ -75,6 +76,7 @@ class Controls extends React.PureComponent {
|
||||
}
|
||||
changeCss(css) {
|
||||
this.setState({ css });
|
||||
this.props.dashboard.onChange();
|
||||
}
|
||||
render() {
|
||||
const dashboard = this.props.dashboard;
|
||||
|
||||
Reference in New Issue
Block a user