Clarify name & import of adminInfluxDB reducer
parent
cb4d4d3aab
commit
23a09f2e97
|
@ -1,4 +1,4 @@
|
|||
import {adminInfluxDBReducer as reducer} from 'src/admin/reducers'
|
||||
import reducer from 'src/admin/reducers/influxdb'
|
||||
|
||||
import {
|
||||
addUser,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
import adminInfluxDBReducer from './influxdb'
|
||||
import adminInfluxDB from './influxdb'
|
||||
|
||||
export {adminInfluxDBReducer}
|
||||
export default {adminInfluxDB}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue