From 8ea08368c071357f236f76aee921fd2394a81283 Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Mon, 16 Jul 2018 09:02:15 +0200 Subject: [PATCH] added dedicated routes reducer --- client/components/routeservers/routes/reducer.jsx | 13 ++++++------- client/reducer/app-reducer.jsx | 4 ++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/client/components/routeservers/routes/reducer.jsx b/client/components/routeservers/routes/reducer.jsx index 523e174..2e97b89 100644 --- a/client/components/routeservers/routes/reducer.jsx +++ b/client/components/routeservers/routes/reducer.jsx @@ -3,26 +3,25 @@ const LOCATION_CHANGE = '@@router/LOCATION_CHANGE' const initialState = { - received: [], - filtered: [], - notExported: [], + received: [], + receivedLoading: false, receivedPage: 0, receivedTotalPages: 0, receivedTotalResults: 0, + filtered: [], + filteredLoading: false, filteredPage: 0, filteredTotalPages: 0, filteredTotalResults: 0, + notExported: [], + notExportedLoading: false, notExportedPage: 0, notExportedTotalPages: 0, notExportedTotalResults: 0, - receivedLoading: false, - filteredLoading: false, - notExportedLoading: false, - filterQuery: "", } diff --git a/client/reducer/app-reducer.jsx b/client/reducer/app-reducer.jsx index ca4e25f..0ab25a7 100644 --- a/client/reducer/app-reducer.jsx +++ b/client/reducer/app-reducer.jsx @@ -24,8 +24,12 @@ import contentReducer import lookupReducer from 'components/lookup/reducer' +import routesReducer + from 'components/routeservers/routes/reducer' + export default combineReducers({ routeservers: routeserversReducer, + routes: routesReducer, modals: modalsReducer, routing: routerReducer, lookup: lookupReducer,