mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
[dashboard] open in edit mode when adding a chart (#4772)
* [dashboard] open in edit mode when adding a chart * Move dashboard unit tests to their own file * fix tests * Better URL management
This commit is contained in:
committed by
GitHub
parent
bd2cb9aada
commit
627bdb2eb3
@@ -6,6 +6,7 @@ import { connect } from 'react-redux';
|
||||
import { Modal, Alert, Button, Radio } from 'react-bootstrap';
|
||||
import Select from 'react-select';
|
||||
import { t } from '../../locales';
|
||||
import { supersetURL } from '../../../utils/common';
|
||||
|
||||
const propTypes = {
|
||||
can_overwrite: PropTypes.bool,
|
||||
@@ -107,7 +108,7 @@ class SaveModal extends React.Component {
|
||||
.then((data) => {
|
||||
// Go to new slice url or dashboard url
|
||||
if (gotodash) {
|
||||
window.location = data.dashboard;
|
||||
window.location = supersetURL(data.dashboard, { edit: 'true' });
|
||||
} else {
|
||||
window.location = data.slice.slice_url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user