- {this.state.alert &&
}
@@ -336,6 +315,7 @@ class Dashboard extends React.PureComponent {
getFilters={this.getFilters}
clearFilter={this.props.actions.clearFilter}
removeFilter={this.props.actions.removeFilter}
+ editMode={this.props.editMode}
/>
diff --git a/superset/assets/javascripts/dashboard/components/DashboardAlert.jsx b/superset/assets/javascripts/dashboard/components/DashboardAlert.jsx
deleted file mode 100644
index 4579ce880dacb..0000000000000
--- a/superset/assets/javascripts/dashboard/components/DashboardAlert.jsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import { Alert } from 'react-bootstrap';
-
-const propTypes = {
- alertContent: PropTypes.node.isRequired,
-};
-
-const DashboardAlert = ({ alertContent }) => (
-
-
+
-
+
+ {this.renderUnsaved()}
- {!this.props.dashboard.standalone_mode &&
+ {this.renderEditButton()}
- }
diff --git a/superset/assets/javascripts/dashboard/components/RefreshIntervalModal.jsx b/superset/assets/javascripts/dashboard/components/RefreshIntervalModal.jsx
index e927e63755697..4cba010d9540f 100644
--- a/superset/assets/javascripts/dashboard/components/RefreshIntervalModal.jsx
+++ b/superset/assets/javascripts/dashboard/components/RefreshIntervalModal.jsx
@@ -34,7 +34,7 @@ class RefreshIntervalModal extends React.PureComponent {
return (