Clarify name & import of adminInfluxDB reducer

pull/10616/head
Jared Scheib 2017-10-31 22:42:31 -07:00
parent cb4d4d3aab
commit 23a09f2e97
4 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import {adminInfluxDBReducer as reducer} from 'src/admin/reducers'
import reducer from 'src/admin/reducers/influxdb'
import {
addUser,

View File

@ -1,3 +1,3 @@
import adminInfluxDBReducer from './influxdb'
import adminInfluxDB from './influxdb'
export {adminInfluxDBReducer}
export default {adminInfluxDB}

View File

@ -16,7 +16,7 @@ const initialState = {
databases: [],
}
export default function adminInfluxDB(state = initialState, action) {
const adminInfluxDB = (state = initialState, action) => {
switch (action.type) {
case 'INFLUXDB_LOAD_USERS': {
return {...state, ...action.payload}
@ -302,3 +302,5 @@ export default function adminInfluxDB(state = initialState, action) {
return state
}
export default adminInfluxDB

View File

@ -9,7 +9,7 @@ import {queryStringConfig} from 'shared/middleware/queryStringConfig'
import statusReducers from 'src/status/reducers'
import sharedReducers from 'shared/reducers'
import dataExplorerReducers from 'src/data_explorer/reducers'
import {adminInfluxDBReducer} from 'src/admin/reducers'
import adminReducers from 'src/admin/reducers'
import kapacitorReducers from 'src/kapacitor/reducers'
import dashboardUI from 'src/dashboards/reducers/ui'
import dashTimeV1 from 'src/dashboards/reducers/dashTimeV1'
@ -20,7 +20,7 @@ const rootReducer = combineReducers({
...sharedReducers,
...dataExplorerReducers,
...kapacitorReducers,
adminInfluxDB: adminInfluxDBReducer,
...adminReducers,
dashboardUI,
dashTimeV1,
routing: routerReducer,