mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 19:31:45 +03:00
* 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)
|
||||
}
|
||||
disabled={
|
||||
!dhcp.config.interface_name
|
||||
dhcp.config.enabled
|
||||
|| !dhcp.config.interface_name
|
||||
|| dhcp.processingConfig
|
||||
}
|
||||
>
|
||||
|
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user