diff options
Diffstat (limited to 'web/src/js/dispatcher.js')
-rw-r--r-- | web/src/js/dispatcher.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/src/js/dispatcher.js b/web/src/js/dispatcher.js index 028ac4dc..65c4a4a0 100644 --- a/web/src/js/dispatcher.js +++ b/web/src/js/dispatcher.js @@ -1,6 +1,6 @@ const PayloadSources = { - VIEW_ACTION: "VIEW_ACTION", - SERVER_ACTION: "SERVER_ACTION" + VIEW: "view", + SERVER: "server" }; @@ -26,10 +26,10 @@ Dispatcher.prototype.dispatch = function (payload) { AppDispatcher = new Dispatcher(); AppDispatcher.dispatchViewAction = function (action) { - action.actionSource = PayloadSources.VIEW_ACTION; + action.source = PayloadSources.VIEW; this.dispatch(action); }; AppDispatcher.dispatchServerAction = function (action) { - action.actionSource = PayloadSources.SERVER_ACTION; + action.source = PayloadSources.SERVER; this.dispatch(action); }; |