diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 23:15:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 23:15:09 +0200 |
| commit | 9be9249f7168e1799b1c6689da44d1efb15667ae (patch) | |
| tree | cc428236256f35f559b767b5eeca9953fd483d2f /app/client/task/task.actions.js | |
| parent | be3b2bd56550b71a2ffb7eb1604c1b8c1d2dd4a2 (diff) | |
modularize... circular dependencies... whatever
Diffstat (limited to 'app/client/task/task.actions.js')
| -rw-r--r-- | app/client/task/task.actions.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/client/task/task.actions.js b/app/client/task/task.actions.js index 466b8d7..ea3dfff 100644 --- a/app/client/task/task.actions.js +++ b/app/client/task/task.actions.js @@ -1,10 +1,12 @@ import socket from '../socket' +import types from '../types' -export const start_task = (task) => { +export const start_task = (task, opt={}) => { socket.task.start_task(task) - return { type: types.task.starting_task, task } + return { type: types.task.starting_task, task, ...opt } } -export const stop_task = (task) => { + +export const stop_task = (task, opt={}) => { socket.task.stop_task(task) - return { type: types.task.stopping_task, task } + return { type: types.task.stopping_task, task, ...opt } } |
