diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-16 21:38:47 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-16 21:38:47 +0200 |
| commit | 8048cfc3981f79f2b65b23c124581aa51ef3768b (patch) | |
| tree | 3feacc6c1de0ffc81b4a7e89baa068ef14ad8fc2 /app | |
| parent | 20365914ca1b905c5710ac3e590aaf1e06ffa221 (diff) | |
paramgroup pix2pix checkbox for server record
Diffstat (limited to 'app')
| -rw-r--r-- | app/client/common/paramGroup.component.js | 1 | ||||
| -rw-r--r-- | app/client/modules/pix2pix/pix2pix.actions.js | 1 | ||||
| -rw-r--r-- | app/client/modules/pix2pix/views/pix2pix.live.js | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/app/client/common/paramGroup.component.js b/app/client/common/paramGroup.component.js index 13b46a5..1fb875c 100644 --- a/app/client/common/paramGroup.component.js +++ b/app/client/common/paramGroup.component.js @@ -12,6 +12,7 @@ class ParamGroup extends Component { clearTimeout(this.timeout) let new_value = e.target.checked this.props.actions.set_param(this.props.name, new_value) + this.props.onToggle && this.props.onToggle(new_value) } render() { const checked = this.props.opt[this.props.name] diff --git a/app/client/modules/pix2pix/pix2pix.actions.js b/app/client/modules/pix2pix/pix2pix.actions.js index b5da04c..2359ebf 100644 --- a/app/client/modules/pix2pix/pix2pix.actions.js +++ b/app/client/modules/pix2pix/pix2pix.actions.js @@ -51,6 +51,7 @@ export const load_directories = (id) => (dispatch) => { checkpointDirectories.forEach(dir => { const dataset = datasetLoader.getDataset(module, datasetLookup, dir.name) dataset.hasCheckpoints = true + dataset.checkpoints = [dir] }) // console.log(res) diff --git a/app/client/modules/pix2pix/views/pix2pix.live.js b/app/client/modules/pix2pix/views/pix2pix.live.js index 1e30383..ec2c33c 100644 --- a/app/client/modules/pix2pix/views/pix2pix.live.js +++ b/app/client/modules/pix2pix/views/pix2pix.live.js @@ -145,6 +145,9 @@ class Pix2PixLive extends Component { <ParamGroup title='Render on server' name='store_b' + onToggle={(value) => { + // now storing frames on server... + }} > </ParamGroup> |
