1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00
2018-06-26 16:59:01 +02:00

27 lines
511 B
JavaScript

import {LOAD_CONFIG_SUCCESS} from './actions'
const initialState = {
routes_columns: {
Gateway: "gateway",
Interface: "interface",
Metric: "metric",
},
prefix_lookup_enabled: false,
content: {}
};
export default function reducer(state = initialState, action) {
switch(action.type) {
case LOAD_CONFIG_SUCCESS:
return {
routes_columns: action.payload.routes_columns,
prefix_lookup_enabled: action.payload.prefix_lookup_enabled
};
}
return state;
}