+ client: add table to show static leases

This commit is contained in:
Ildar Kamalov
2019-05-20 11:55:04 +03:00
committed by Simon Zolin
parent 49b91b4fc9
commit a8384c004e
4 changed files with 75 additions and 7 deletions

View File

@@ -287,11 +287,18 @@ const dhcp = handleActions({
[actions.getDhcpStatusRequest]: state => ({ ...state, processing: true }),
[actions.getDhcpStatusFailure]: state => ({ ...state, processing: false }),
[actions.getDhcpStatusSuccess]: (state, { payload }) => {
const {
static_leases: staticLeases,
...values
} = payload;
const newState = {
...state,
...payload,
staticLeases,
processing: false,
...values,
};
return newState;
},
@@ -355,6 +362,7 @@ const dhcp = handleActions({
},
check: null,
leases: [],
staticLeases: [],
});
export default combineReducers({