From e055ca78a53e0f0b8f4b3a351717a8987d6706eb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 01:55:55 +0200 Subject: params should pass thru.. --- app/client/modules/morph/morph.actions.js | 1 + app/client/modules/morph/morph.tasks.js | 15 +++++++-------- app/client/modules/morph/views/morph.app.js | 15 ++++++++------- 3 files changed, 16 insertions(+), 15 deletions(-) (limited to 'app/client/modules') diff --git a/app/client/modules/morph/morph.actions.js b/app/client/modules/morph/morph.actions.js index 9d47d03..04f452d 100644 --- a/app/client/modules/morph/morph.actions.js +++ b/app/client/modules/morph/morph.actions.js @@ -36,6 +36,7 @@ export const load_data = (id) => (dispatch) => { type: types.morph.load, data: datasetApiReport, app: { + resultsFolder, files, sequences, renders, diff --git a/app/client/modules/morph/morph.tasks.js b/app/client/modules/morph/morph.tasks.js index 67abc8a..ad88fc0 100644 --- a/app/client/modules/morph/morph.tasks.js +++ b/app/client/modules/morph/morph.tasks.js @@ -7,17 +7,16 @@ 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)') +export const morph_task = (state, folder) => dispatch => { const task = { module: module.name, - activity: 'fetch', - dataset: dataset, + activity: 'morph', + dataset: state.a, + folder_id: folder.id, opt: { - url, - file_id, - dataset, - } + ...state, + dataset_module: 'pix2pihd', + }, } return actions.queue.add_task(task) } diff --git a/app/client/modules/morph/views/morph.app.js b/app/client/modules/morph/views/morph.app.js index 045f396..38cd121 100644 --- a/app/client/modules/morph/views/morph.app.js +++ b/app/client/modules/morph/views/morph.app.js @@ -28,7 +28,7 @@ class MorphResults extends Component { steps: 16, dilate: 2, smooth: true, - cmd: 'mix', + mode: 'mix', } if (!props.morph.data) props.actions.load_data() } @@ -38,7 +38,7 @@ class MorphResults extends Component { render(){ if (! this.props.morph.app) return - const { sequences, renders, files } = this.props.morph.app + const { resultsFolder, sequences, renders, files } = this.props.morph.app const sequence_options = sequences.map(sequence => [ sequence.name.split("_").slice(0, 3).join(" ") + "~ (" + sequence.count + ")", sequence.name @@ -92,10 +92,10 @@ class MorphResults extends Component {