diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 13:25:02 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 13:25:02 +0200 |
| commit | 237a32c596f37a38c07902332adc1af4c0c43609 (patch) | |
| tree | 58b3a91372be4c0fa0d13c8f7f242cd87285e091 /app/client/dashboard/dashboard.component.js | |
| parent | 9359758ce631528ae2b0deb82df05f908d5c42a2 (diff) | |
app bugz
Diffstat (limited to 'app/client/dashboard/dashboard.component.js')
| -rw-r--r-- | app/client/dashboard/dashboard.component.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/client/dashboard/dashboard.component.js b/app/client/dashboard/dashboard.component.js index 1e037bc..58795ee 100644 --- a/app/client/dashboard/dashboard.component.js +++ b/app/client/dashboard/dashboard.component.js @@ -30,7 +30,7 @@ class Dashboard extends Component { // this.props.actions.list_epochs(nextProps.opt.checkpoint_name) } render(){ - const { site, foldersByModule, sampleRNNrenders, queue, images } = this.props + const { site, foldersByModule, renders, queue, images } = this.props const { tasks } = queue const folders = foldersByModule && Object.keys(modules).sort().map(key => { if (! foldersByModule[key]) return null @@ -42,10 +42,10 @@ class Dashboard extends Component { </div> ) }) - const files = key === 'samplernn' && ( + let files = renders[key] && ( <FileList linkFiles - files={sampleRNNrenders} + files={renders[key]} orderBy='date desc' fields={'name date epoch size'} onClick={(file, e) => { @@ -55,7 +55,7 @@ class Dashboard extends Component { this.handlePick(file) }} /> - ) + ); return ( <div className='dashboardModule' key={key}> @@ -100,7 +100,7 @@ class Dashboard extends Component { const mapStateToProps = state => ({ site: state.system.site, foldersByModule: state.dashboard.data.foldersByModule, - sampleRNNrenders: state.dashboard.data.sampleRNNrenders, + renders: state.dashboard.data.renders, images: state.dashboard.images, files: state.dashboard.files, queue: state.queue, |
