From 577e2753bd7979badcaf23274bbb7327fa892512 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 15:08:02 +0200 Subject: deploy bundle --- app/client/common/select.component.js | 3 ++- app/client/modules/morph/morph.tasks.js | 1 + app/client/modules/morph/views/morph.app.js | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'app') diff --git a/app/client/common/select.component.js b/app/client/common/select.component.js index 0a48dce..334d95a 100644 --- a/app/client/common/select.component.js +++ b/app/client/common/select.component.js @@ -10,6 +10,7 @@ class Select extends Component { handleChange(e){ clearTimeout(this.timeout) let new_value = e.target.value + if (new_value === 'PLACEHOLDER') return this.props.onChange && this.props.onChange(this.props.name, new_value) } render() { @@ -50,7 +51,7 @@ class Select extends Component { onChange={this.handleChange} value={currentValue || lastValue} > - {this.props.placeholder && } + {this.props.placeholder && } {options} diff --git a/app/client/modules/morph/morph.tasks.js b/app/client/modules/morph/morph.tasks.js index ba0f6b9..1e938c8 100644 --- a/app/client/modules/morph/morph.tasks.js +++ b/app/client/modules/morph/morph.tasks.js @@ -8,6 +8,7 @@ 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', diff --git a/app/client/modules/morph/views/morph.app.js b/app/client/modules/morph/views/morph.app.js index 4a5b51b..09294a3 100644 --- a/app/client/modules/morph/views/morph.app.js +++ b/app/client/modules/morph/views/morph.app.js @@ -22,8 +22,8 @@ class MorphResults extends Component { super() this.state = { dataset_module: 'pix2pixhd', - a: "", - b: "", + a: "PLACEHOLDER", + b: "PLACEHOLDER", a_offset: 0, a_duration: 1, a_pos: 0, @@ -69,7 +69,7 @@ class MorphResults extends Component { this.setState({ b: key, b_duration: sequenceLookup[key].count, b_pos: 0, b_offset: 0 })} -- cgit v1.2.3-70-g09d2