* client: disable DHCP check if server enabled and hide errors on disable

This commit is contained in:
Ildar Kamalov
2019-03-28 19:08:24 +03:00
committed by Simon Zolin
parent 24fc2957c5
commit 4b821d67f5
2 changed files with 5 additions and 2 deletions

View File

@@ -303,7 +303,9 @@ const dhcp = handleActions({
[actions.toggleDhcpSuccess]: (state) => {
const { config } = state;
const newConfig = { ...config, enabled: !config.enabled };
const newState = { ...state, config: newConfig, processingDhcp: false };
const newState = {
...state, config: newConfig, active: null, processingDhcp: false,
};
return newState;
},