diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-02 17:46:18 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-02 17:46:18 -0700 |
commit | 698d38b28e43ce0685ce8ce8c119926af2083cbc (patch) | |
tree | 1859fc8ac63104a6b4f1fa0030764f81bf431872 /web/src/js/reducers | |
parent | 7a388560d7d3ef22be0bdef1811414ad18ff2484 (diff) | |
download | mitmproxy-698d38b28e43ce0685ce8ce8c119926af2083cbc.tar.gz mitmproxy-698d38b28e43ce0685ce8ce8c119926af2083cbc.tar.bz2 mitmproxy-698d38b28e43ce0685ce8ce8c119926af2083cbc.zip |
web: :hatching_chick:
Diffstat (limited to 'web/src/js/reducers')
-rw-r--r-- | web/src/js/reducers/eventLog.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/web/src/js/reducers/eventLog.js b/web/src/js/reducers/eventLog.js deleted file mode 100644 index 9d078c14..00000000 --- a/web/src/js/reducers/eventLog.js +++ /dev/null @@ -1,31 +0,0 @@ -import {combineReducers} from 'redux' -import {TOGGLE_EVENTLOG_FILTER} from "../reduxActions" - -const defaultVisibility = { - "debug": false, - "info": true, - "web": true -}; - -const visibilityFilter = (state = defaultVisibility, action) => { - switch (action.type) { - case TOGGLE_EVENTLOG_FILTER: - return { - ...state, - [action.filter]: !state[action.filter] - }; - default: - return state; - } -}; - -const entries = (state = [], action) => { - return state; -}; - -const eventLog = combineReducers({ - visibilityFilter, - entries -}); - -export default eventLog |