Add "block" and "unblock" buttons to the Query Log

This commit is contained in:
Ildar Kamalov
2018-09-28 16:30:52 +03:00
parent d7039d9222
commit c40f7b4d5c
4 changed files with 109 additions and 7 deletions

View File

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