diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 01:28:41 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 01:28:41 +0200 |
| commit | 8d06839056967e8786c63976545aff098ae2f128 (patch) | |
| tree | 51c83236b2dcc5a6adabb1b4036eccfff63b9ef5 /app/client/modules/morph/morph.tasks.js | |
| parent | bd354556f98aa724dd6cee03a1828bd40ce01f33 (diff) | |
morph module.. enum method for sliders
Diffstat (limited to 'app/client/modules/morph/morph.tasks.js')
| -rw-r--r-- | app/client/modules/morph/morph.tasks.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/client/modules/morph/morph.tasks.js b/app/client/modules/morph/morph.tasks.js new file mode 100644 index 0000000..67abc8a --- /dev/null +++ b/app/client/modules/morph/morph.tasks.js @@ -0,0 +1,23 @@ +import uuidv1 from 'uuid/v1' + +import socket from '../../socket' +import types from '../../types' + +import actions from '../../actions' + +import module from './morph.module' + +export const fetch_task = (url, file_id, dataset) => dispatch => { + if (! url) return console.log('input file inaccessible (no url)') + const task = { + module: module.name, + activity: 'fetch', + dataset: dataset, + opt: { + url, + file_id, + dataset, + } + } + return actions.queue.add_task(task) +} |
