From 79a13c20e1f2ce3f1838f500802d5355dce90446 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 20 Jun 2018 13:17:29 +0200 Subject: crazy.. --- .../modules/pix2pixhd/views/pix2pixhd.results.js | 68 ++++++++++++++-------- 1 file changed, 44 insertions(+), 24 deletions(-) (limited to 'app/client/modules/pix2pixhd/views') diff --git a/app/client/modules/pix2pixhd/views/pix2pixhd.results.js b/app/client/modules/pix2pixhd/views/pix2pixhd.results.js index cf0bdf7..ac0bb74 100644 --- a/app/client/modules/pix2pixhd/views/pix2pixhd.results.js +++ b/app/client/modules/pix2pixhd/views/pix2pixhd.results.js @@ -16,37 +16,57 @@ class Pix2pixHDResults extends Component { if (!props.pix2pixhd.results) props.actions.load_results() } render(){ - if (this.props.pix2pixhd.loading) return - // const { folderLookup, fileLookup, datasetLookup } = this.props.samplernn.data - - // console.log(bestRenders.map(r => r.epoch)) - // const path = folder.name === 'unsorted' - // ? "/samplernn/import/" - // : "/samplernn/datasets/" + folder.id + "/" - // return ( - //
- //

{folder.name}

- // { - // e.preventDefault() - // e.stopPropagation() - // console.log('picked a file', file) - // this.handlePick(file) - // }} - // /> - //
- // ) + if (! this.props.pix2pixhd.results) return + const { results, renders, files } = this.props.pix2pixhd.results +console.log(results) return (

Pix2PixHD Results

+ +

results

+ { + e.preventDefault() + e.stopPropagation() + console.log('picked a result', file) + this.handlePick(file) + }} + /> + +

renders

+ { + e.preventDefault() + e.stopPropagation() + console.log('picked a result', file) + this.handlePick(file) + }} + /> + +

files

+ { + e.preventDefault() + e.stopPropagation() + console.log('picked a result', file) + this.handlePick(file) + }} + /> +
) -- cgit v1.2.3-70-g09d2