+ client: handle logs configuration

This commit is contained in:
Ildar Kamalov
2019-09-04 17:39:35 +03:00
committed by Simon Zolin
parent 27f895cf46
commit a753ae86cc
19 changed files with 401 additions and 229 deletions

View File

@@ -2,14 +2,18 @@ import { connect } from 'react-redux';
import { initSettings, toggleSetting } from '../actions';
import { getBlockedServices, setBlockedServices } from '../actions/services';
import { getStatsConfig, setStatsConfig, resetStats } from '../actions/stats';
import { toggleLogStatus, clearLogs, getLogsConfig, setLogsConfig } from '../actions/queryLogs';
import Settings from '../components/Settings';
const mapStateToProps = (state) => {
const { settings, services, stats } = state;
const {
settings, services, stats, queryLogs,
} = state;
const props = {
settings,
services,
stats,
queryLogs,
};
return props;
};
@@ -22,6 +26,10 @@ const mapDispatchToProps = {
getStatsConfig,
setStatsConfig,
resetStats,
toggleLogStatus,
clearLogs,
getLogsConfig,
setLogsConfig,
};
export default connect(