+ 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

@@ -1,5 +1,6 @@
import { connect } from 'react-redux';
import { getLogs, toggleLogStatus, downloadQueryLog, getFilteringStatus, setRules, addSuccessToast, getClients } from '../actions';
import { getFilteringStatus, setRules, addSuccessToast, getClients } from '../actions';
import { getLogs, getLogsConfig } from '../actions/queryLogs';
import Logs from '../components/Logs';
const mapStateToProps = (state) => {
@@ -10,12 +11,11 @@ const mapStateToProps = (state) => {
const mapDispatchToProps = {
getLogs,
toggleLogStatus,
downloadQueryLog,
getFilteringStatus,
setRules,
addSuccessToast,
getClients,
getLogsConfig,
};
export default connect(

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(