diff options
Diffstat (limited to 'app/client/modules/pix2pixhd')
| -rw-r--r-- | app/client/modules/pix2pixhd/views/pix2pixhd.live.js | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/app/client/modules/pix2pixhd/views/pix2pixhd.live.js b/app/client/modules/pix2pixhd/views/pix2pixhd.live.js index 22dc8e3..a6da1ec 100644 --- a/app/client/modules/pix2pixhd/views/pix2pixhd.live.js +++ b/app/client/modules/pix2pixhd/views/pix2pixhd.live.js @@ -127,29 +127,6 @@ class Pix2PixHDLive extends Component { /> {this.renderRestartButton()} {this.renderRecordButton()} - <Button - title={'Save frame'} - onClick={saveFrame} - > - Save - </Button> - <ParamGroup - title='Record video' - name='store_b' - onToggle={(value) => { - // now storing frames on server... - }} - > - <TextInput - title='Video name' - name='final_tag' - value={this.props.opt.final_tag} - onSave={value => { - this.props.actions.live.set_param('final_tag', value) - }} - /> - </ParamGroup> - <p class='last_message'>{this.props.last_message}</p> </ParamGroup> </div> @@ -304,6 +281,7 @@ class Pix2PixHDLive extends Component { title={'GPU Busy'} onClick={() => this.interrupt()} >Interrupt</Button> + {this.renderLiveButtons()} </div> ) } @@ -324,6 +302,35 @@ class Pix2PixHDLive extends Component { // </Button> // ) } + renderLiveButtons(){ + return ( + <div> + <Button + title={'Save frame'} + onClick={saveFrame} + > + Save + </Button> + <ParamGroup + title='Record video' + name='store_b' + noDim + onToggle={(value) => { + // now storing frames on server... + }} + > + <TextInput + title='Video name' + name='final_tag' + value={this.props.opt.final_tag} + onSave={value => { + this.props.actions.live.set_param('final_tag', value) + }} + /> + </ParamGroup> + </div> + ) + } } function timeInSeconds(n){ return n.toFixed(1) + ' s.' |
