diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 01:55:55 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 01:55:55 +0200 |
| commit | e055ca78a53e0f0b8f4b3a351717a8987d6706eb (patch) | |
| tree | 1ede1f61d5ba76cfea0da208e4eaac585f76d9ea /app/client/modules/morph/views | |
| parent | 8d06839056967e8786c63976545aff098ae2f128 (diff) | |
params should pass thru..
Diffstat (limited to 'app/client/modules/morph/views')
| -rw-r--r-- | app/client/modules/morph/views/morph.app.js | 15 |
1 files changed, 8 insertions, 7 deletions
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 <Loading progress={this.props.morph.progress} /> - 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 { <Group title="Morph Settings"> <Select - title="Action" - value={this.state.cmd} + title={"Mode"} + value={this.state.mode} options={['mix', 'average']} - onChange={key => this.setState({ a: key })} + onChange={key => this.setState({ mode: key })} /> <Slider type="list" @@ -117,8 +117,9 @@ class MorphResults extends Component { onToggle={key => this.setState({ smooth: key })} /> <Button - title="Run morph" - value="Go" + title="Run task" + value="Morph!" + onClick={() => this.props.remote.morph_task(this.state, resultsFolder)} /> <br /> <Param title="Total length"> |
