blob: 1e938c804f12fa72a9899bfb8cf96c4996045d86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import uuidv1 from 'uuid/v1'
import socket from '../../socket'
import types from '../../types'
import actions from '../../actions'
import module from './morph.module'
export const morph_task = (state, folder) => dispatch => {
if (state.a === 'PLACEHOLDER' || state.b === 'PLACEHOLDER') return
const task = {
module: module.name,
activity: 'morph',
dataset: state.a,
folder_id: folder.id,
opt: state,
}
return actions.queue.add_task(task)
}
|