* client: disable DHCP check if server enabled and hide errors on disable
This commit is contained in:
parent
24fc2957c5
commit
4b821d67f5
|
@ -148,7 +148,8 @@ class Dhcp extends Component {
|
||||||
this.props.findActiveDhcp(dhcp.config.interface_name)
|
this.props.findActiveDhcp(dhcp.config.interface_name)
|
||||||
}
|
}
|
||||||
disabled={
|
disabled={
|
||||||
!dhcp.config.interface_name
|
dhcp.config.enabled
|
||||||
|
|| !dhcp.config.interface_name
|
||||||
|| dhcp.processingConfig
|
|| dhcp.processingConfig
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
|
@ -303,7 +303,9 @@ const dhcp = handleActions({
|
||||||
[actions.toggleDhcpSuccess]: (state) => {
|
[actions.toggleDhcpSuccess]: (state) => {
|
||||||
const { config } = state;
|
const { config } = state;
|
||||||
const newConfig = { ...config, enabled: !config.enabled };
|
const newConfig = { ...config, enabled: !config.enabled };
|
||||||
const newState = { ...state, config: newConfig, processingDhcp: false };
|
const newState = {
|
||||||
|
...state, config: newConfig, active: null, processingDhcp: false,
|
||||||
|
};
|
||||||
return newState;
|
return newState;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue