diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 23:57:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 23:57:23 +0200 |
| commit | a960d57ad80a65d5cf028f2595b38ca07bb46b83 (patch) | |
| tree | 58bc92a8c30511a1e4caa79f7ce5a3528d7ac35b /app/client/queue | |
| parent | 1ccc4c798d95133cde1d4558318f0640a772526a (diff) | |
updating task status on serverrrrrr
Diffstat (limited to 'app/client/queue')
| -rw-r--r-- | app/client/queue/queue.actions.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/client/queue/queue.actions.js b/app/client/queue/queue.actions.js index 1885e2c..6049e1b 100644 --- a/app/client/queue/queue.actions.js +++ b/app/client/queue/queue.actions.js @@ -18,4 +18,15 @@ export const add_task = (new_task) => (dispatch) => { .then((task) => { socket.task.add_task(task) }) -}
\ No newline at end of file +} + +export const start_queue = (task, opt={}) => { + socket.task.start_queue(task, opt) + return { type: types.task.starting_queue, task, ...opt } +} + +export const stop_queue = (task, opt={}) => { + socket.task.stop_queue(task, opt) + return { type: types.task.stopping_queue, task, ...opt } +} + |
