rename checkdatanodes to checksources

pull/10616/head
Jade McGough 2016-11-10 10:59:11 -08:00 committed by Andrew Watkins
parent 656b25864b
commit 9f63afea47
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ const {bool, number, string, node, func, shape} = PropTypes;
// Acts as a 'router middleware'. The main `App` component is responsible for
// getting the list of data nodes, but not every page requires them to function.
// Routes that do require data nodes can be nested under this component.
const CheckDataNodes = React.createClass({
const CheckSources = React.createClass({
propTypes: {
addFlashMessage: func,
children: node,
@ -80,4 +80,4 @@ const CheckDataNodes = React.createClass({
},
});
export default withRouter(CheckDataNodes);
export default withRouter(CheckSources);

View File

@ -5,7 +5,7 @@ import {Router, Route, browserHistory} from 'react-router';
import App from 'src/App';
import AlertsApp from 'src/alerts';
import CheckDataNodes from 'src/CheckDataNodes';
import CheckSources from 'src/CheckSources';
import {HostsPage, HostPage} from 'src/hosts';
import {KapacitorPage, KapacitorRulePage, KapacitorRulesPage, KapacitorTasksPage} from 'src/kapacitor';
import TasksPage from 'src/tasks';
@ -92,7 +92,7 @@ const Root = React.createClass({
<Router history={browserHistory}>
<Route path="/" component={CreateSource} onEnter={this.redirectToHosts} />
<Route path="/sources/:sourceID" component={App}>
<Route component={CheckDataNodes}>
<Route component={CheckSources}>
<Route path="manage-sources" component={ManageSources} />
<Route path="manage-sources/new" component={SourceForm} />
<Route path="manage-sources/:id/edit" component={SourceForm} />