Rename chooseExplorer to chooseExploration
parent
8f441b744e
commit
a618a01036
|
@ -283,7 +283,7 @@ function saveExplorer(error) {
|
|||
};
|
||||
}
|
||||
|
||||
export function chooseExplorer(explorerURI, source, push) {
|
||||
export function chooseExploration(explorerURI, source, push) {
|
||||
return (dispatch, getState) => {
|
||||
// Save the previous session explicitly in case an auto-save was unable to complete.
|
||||
const {panels, queryConfigs, activeExplorer} = getState();
|
||||
|
|
|
@ -8,7 +8,7 @@ import {FETCHING} from '../reducers/explorers';
|
|||
import {
|
||||
setTimeRange as setTimeRangeAction,
|
||||
createExploration as createExplorationAction,
|
||||
chooseExplorer as chooseExplorerAction,
|
||||
chooseExploration as chooseExplorationAction,
|
||||
deleteExplorer as deleteExplorerAction,
|
||||
editExplorer as editExplorerAction,
|
||||
} from '../actions/view';
|
||||
|
@ -29,7 +29,7 @@ const DataExplorer = React.createClass({
|
|||
}).isRequired,
|
||||
setTimeRange: PropTypes.func.isRequired,
|
||||
createExploration: PropTypes.func.isRequired,
|
||||
chooseExplorer: PropTypes.func.isRequired,
|
||||
chooseExploration: PropTypes.func.isRequired,
|
||||
deleteExplorer: PropTypes.func.isRequired,
|
||||
editExplorer: PropTypes.func.isRequired,
|
||||
},
|
||||
|
@ -60,7 +60,7 @@ const DataExplorer = React.createClass({
|
|||
},
|
||||
|
||||
render() {
|
||||
const {timeRange, explorers, explorerID, setTimeRange, createExploration, chooseExplorer, deleteExplorer, editExplorer} = this.props;
|
||||
const {timeRange, explorers, explorerID, setTimeRange, createExploration, chooseExploration, deleteExplorer, editExplorer} = this.props;
|
||||
|
||||
if (explorers === FETCHING) {
|
||||
// TODO: page-wide spinner
|
||||
|
@ -75,7 +75,7 @@ const DataExplorer = React.createClass({
|
|||
return (
|
||||
<div className="data-explorer">
|
||||
<Header
|
||||
actions={{setTimeRange, createExploration, chooseExplorer, deleteExplorer, editExplorer}}
|
||||
actions={{setTimeRange, createExploration, chooseExploration, deleteExplorer, editExplorer}}
|
||||
explorers={explorers}
|
||||
timeRange={timeRange}
|
||||
explorerID={explorerID}
|
||||
|
@ -99,7 +99,7 @@ function mapStateToProps(state) {
|
|||
export default connect(mapStateToProps, {
|
||||
setTimeRange: setTimeRangeAction,
|
||||
createExploration: createExplorationAction,
|
||||
chooseExplorer: chooseExplorerAction,
|
||||
chooseExploration: chooseExplorationAction,
|
||||
deleteExplorer: deleteExplorerAction,
|
||||
editExplorer: editExplorerAction,
|
||||
})(DataExplorer);
|
||||
|
|
|
@ -16,7 +16,7 @@ const Header = React.createClass({
|
|||
actions: PropTypes.shape({
|
||||
setTimeRange: PropTypes.func.isRequired,
|
||||
createExploration: PropTypes.func.isRequired,
|
||||
chooseExplorer: PropTypes.func.isRequired,
|
||||
chooseExploration: PropTypes.func.isRequired,
|
||||
deleteExplorer: PropTypes.func.isRequired,
|
||||
editExplorer: PropTypes.func.isRequired,
|
||||
}),
|
||||
|
@ -62,7 +62,7 @@ const Header = React.createClass({
|
|||
return;
|
||||
}
|
||||
|
||||
this.props.actions.chooseExplorer(id, this.context.source, this.props.router.push);
|
||||
this.props.actions.chooseExploration(id, this.context.source, this.props.router.push);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue