From a3573815ed1f6f2cc1388ae91cc7d07eb9980785 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 22 Jun 2018 17:04:55 +0200 Subject: deploy bundle --- app/client/common/paramGroup.component.js | 3 +- .../modules/pix2pixhd/views/pix2pixhd.live.js | 53 ++++++++++++---------- app/client/socket/socket.task.js | 1 + 3 files changed, 33 insertions(+), 24 deletions(-) (limited to 'app/client') diff --git a/app/client/common/paramGroup.component.js b/app/client/common/paramGroup.component.js index 1fb875c..7b47c78 100644 --- a/app/client/common/paramGroup.component.js +++ b/app/client/common/paramGroup.component.js @@ -17,7 +17,8 @@ class ParamGroup extends Component { render() { const checked = this.props.opt[this.props.name] const toggle = !this.props.noToggle - const className = (!toggle || checked) ? 'paramGroup active' : 'paramGroup inactive' + const dim = !this.props.noDim + const className = (!dim || !toggle || checked) ? 'paramGroup active' : 'paramGroup inactive' return (
@@ -304,6 +281,7 @@ class Pix2PixHDLive extends Component { title={'GPU Busy'} onClick={() => this.interrupt()} >Interrupt + {this.renderLiveButtons()} ) } @@ -324,6 +302,35 @@ class Pix2PixHDLive extends Component { // // ) } + renderLiveButtons(){ + return ( +
+ + { + // now storing frames on server... + }} + > + { + this.props.actions.live.set_param('final_tag', value) + }} + /> + +
+ ) + } } function timeInSeconds(n){ return n.toFixed(1) + ' s.' diff --git a/app/client/socket/socket.task.js b/app/client/socket/socket.task.js index bbaa9bd..77f1310 100644 --- a/app/client/socket/socket.task.js +++ b/app/client/socket/socket.task.js @@ -54,6 +54,7 @@ socket.on('task_res', (data) => { case 'task_error': return console.log('task error', data) default: + console.log(data) return console.log('no such task command', data.type) } }) -- cgit v1.2.3-70-g09d2