Skip to content
Snippets Groups Projects
Commit 77f95c85 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-29: add test type selection and averaging window in station statistics

parent bf8da6da
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
......@@ -1877,6 +1877,7 @@ LCU/Maintenance/MDB_WebView/maintenancedb_view/src/redux/actions/actions.js -tex
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/redux/actions/appInitData.js -text
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/redux/reducers/appInitData.js -text
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/redux/reducers/index.js -text
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/redux/reducers/landingPageReducers.js -text
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/redux/reducers/mainFilters.js -text
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/redux/store.js -text
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/registerServiceWorker.js -text
......
import { SET_AVERAGING_WINDOW, SET_TEST_TYPE } from '../actions/actionTypes.js'
const initialState = { station_statistics :
{ averaging_window: 1,
test_type: 'B'}
};
export default function(state = initialState, action) {
switch (action.type) {
case SET_AVERAGING_WINDOW: {
return {
...state,
station_statistics: {...state.station_statistics,
averaging_window: action.payload.averagingWindow}
};
}
case SET_TEST_TYPE: {
return {
...state,
station_statistics: {...state.station_statistics,
test_type: action.payload.test_type}
};
}
default:
return state;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment