diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-12-23 23:23:25 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-12-23 23:23:25 +0100 |
commit | b1311faa68947b982dbbe8b8f3e9d26b2356b1c2 (patch) | |
tree | 69e8b5b534c990d7cd8b937b7a5d7e39fbd97402 /web/src/js/actions.js | |
parent | 4767b83726eb82d657825bcf8c00871667d73081 (diff) | |
download | mitmproxy-b1311faa68947b982dbbe8b8f3e9d26b2356b1c2.tar.gz mitmproxy-b1311faa68947b982dbbe8b8f3e9d26b2356b1c2.tar.bz2 mitmproxy-b1311faa68947b982dbbe8b8f3e9d26b2356b1c2.zip |
web: move eventlog state out of settings
Diffstat (limited to 'web/src/js/actions.js')
-rw-r--r-- | web/src/js/actions.js | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/web/src/js/actions.js b/web/src/js/actions.js index e7799118..091ae6c3 100644 --- a/web/src/js/actions.js +++ b/web/src/js/actions.js @@ -44,12 +44,14 @@ var SettingsActions = { data: settings }); + /* //Facebook Flux: We do an optimistic update on the client already. AppDispatcher.dispatchViewAction({ type: ActionTypes.SETTINGS_STORE, cmd: StoreCmds.UPDATE, data: settings }); + */ } }; @@ -68,7 +70,28 @@ var EventLogActions = { } }; +var FlowActions = { + accept: function (flow) { + jQuery.post("/flows/" + flow.id + "/accept"); + }, + accept_all: function(){ + jQuery.post("/flows/accept"); + }, + + update: function (flow) { + AppDispatcher.dispatchViewAction({ + type: ActionTypes.FLOW_STORE, + cmd: StoreCmds.UPDATE, + data: flow + }); + }, + clear: function(){ + jQuery.post("/clear"); + } +}; + Query = { FILTER: "f", - HIGHLIGHT: "h" + HIGHLIGHT: "h", + SHOW_EVENTLOG: "e" };
\ No newline at end of file |