all: sync with master; upd chlog
This commit is contained in:
@@ -128,7 +128,8 @@ const dhcp = handleActions(
|
||||
const newState = {
|
||||
...state,
|
||||
isModalOpen: !state.isModalOpen,
|
||||
leaseModalConfig: payload,
|
||||
modalType: payload?.type || '',
|
||||
leaseModalConfig: payload?.config,
|
||||
};
|
||||
return newState;
|
||||
},
|
||||
@@ -175,6 +176,16 @@ const dhcp = handleActions(
|
||||
};
|
||||
return newState;
|
||||
},
|
||||
|
||||
[actions.updateStaticLeaseRequest]: (state) => ({ ...state, processingUpdating: true }),
|
||||
[actions.updateStaticLeaseFailure]: (state) => ({ ...state, processingUpdating: false }),
|
||||
[actions.updateStaticLeaseSuccess]: (state) => {
|
||||
const newState = {
|
||||
...state,
|
||||
processingUpdating: false,
|
||||
};
|
||||
return newState;
|
||||
},
|
||||
},
|
||||
{
|
||||
processing: true,
|
||||
@@ -184,6 +195,7 @@ const dhcp = handleActions(
|
||||
processingConfig: false,
|
||||
processingAdding: false,
|
||||
processingDeleting: false,
|
||||
processingUpdating: false,
|
||||
enabled: false,
|
||||
interface_name: '',
|
||||
check: null,
|
||||
@@ -202,6 +214,7 @@ const dhcp = handleActions(
|
||||
staticLeases: [],
|
||||
isModalOpen: false,
|
||||
leaseModalConfig: undefined,
|
||||
modalType: '',
|
||||
dhcp_available: false,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user