+ client: handle DNS config
This commit is contained in:
committed by
Ildar Kamalov
parent
87bb773d3e
commit
197d07f32b
@@ -4,11 +4,12 @@ import { getBlockedServices, setBlockedServices } from '../actions/services';
|
||||
import { getStatsConfig, setStatsConfig, resetStats } from '../actions/stats';
|
||||
import { clearLogs, getLogsConfig, setLogsConfig } from '../actions/queryLogs';
|
||||
import { getFilteringStatus, setFiltersConfig } from '../actions/filtering';
|
||||
import { getDnsConfig, setDnsConfig } from '../actions/dnsConfig';
|
||||
import Settings from '../components/Settings';
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
const {
|
||||
settings, services, stats, queryLogs, filtering,
|
||||
settings, services, stats, queryLogs, filtering, dnsConfig,
|
||||
} = state;
|
||||
const props = {
|
||||
settings,
|
||||
@@ -16,6 +17,7 @@ const mapStateToProps = (state) => {
|
||||
stats,
|
||||
queryLogs,
|
||||
filtering,
|
||||
dnsConfig,
|
||||
};
|
||||
return props;
|
||||
};
|
||||
@@ -33,6 +35,8 @@ const mapDispatchToProps = {
|
||||
setLogsConfig,
|
||||
getFilteringStatus,
|
||||
setFiltersConfig,
|
||||
getDnsConfig,
|
||||
setDnsConfig,
|
||||
};
|
||||
|
||||
export default connect(
|
||||
|
||||
Reference in New Issue
Block a user