mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
add css to the data object to be saved (#2188)
This commit is contained in:
@@ -18,7 +18,7 @@ class Controls extends React.PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
css: props.dashboard.css,
|
||||
css: props.dashboard.css || '',
|
||||
cssTemplates: [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ class SaveModal extends React.PureComponent {
|
||||
saveDashboardRequest(data, url, saveType) {
|
||||
const dashboard = this.props.dashboard;
|
||||
const saveModal = this.modal;
|
||||
Object.assign(data, { css: this.props.css });
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user