diff options
Diffstat (limited to 'web/src')
-rw-r--r-- | web/src/js/components/header.js | 3 | ||||
-rw-r--r-- | web/src/js/components/mainview.js | 15 |
2 files changed, 10 insertions, 8 deletions
diff --git a/web/src/js/components/header.js b/web/src/js/components/header.js index c8f4ce3b..76a1a5fb 100644 --- a/web/src/js/components/header.js +++ b/web/src/js/components/header.js @@ -5,6 +5,7 @@ var Filt = require("../filt/filt.js"); var utils = require("../utils.js"); var common = require("./common.js"); +var actions = require("../actions.js"); var FilterDocs = React.createClass({ statics: { @@ -275,7 +276,7 @@ var FileMenu = React.createClass({ handleNewClick: function (e) { e.preventDefault(); if (confirm("Delete all flows?")) { - FlowActions.clear(); + actions.FlowActions.clear(); } }, handleOpenClick: function (e) { diff --git a/web/src/js/components/mainview.js b/web/src/js/components/mainview.js index a98007ec..6c91529d 100644 --- a/web/src/js/components/mainview.js +++ b/web/src/js/components/mainview.js @@ -1,6 +1,7 @@ var React = require("react"); var common = require("./common.js"); +var actions = require("../actions.js"); var toputils = require("../utils.js"); var views = require("../store/view.js"); var Filt = require("../filt/filt.js"); @@ -166,33 +167,33 @@ var MainView = React.createClass({ break; case toputils.Key.C: if (e.shiftKey) { - FlowActions.clear(); + actions.FlowActions.clear(); } break; case toputils.Key.D: if (flow) { if (e.shiftKey) { - FlowActions.duplicate(flow); + actions.FlowActions.duplicate(flow); } else { - FlowActions.delete(flow); + actions.FlowActions.delete(flow); } } break; case toputils.Key.A: if (e.shiftKey) { - FlowActions.accept_all(); + actions.FlowActions.accept_all(); } else if (flow && flow.intercepted) { - FlowActions.accept(flow); + actions.FlowActions.accept(flow); } break; case toputils.Key.R: if (!e.shiftKey && flow) { - FlowActions.replay(flow); + actions.FlowActions.replay(flow); } break; case toputils.Key.V: if(e.shiftKey && flow && flow.modified) { - FlowActions.revert(flow); + actions.FlowActions.revert(flow); } break; default: |