diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 16:16:24 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 16:16:24 +0200 |
| commit | b0d534d174def2940287745535726c7e878dcbcc (patch) | |
| tree | 499f8980f2e29bd36833bb943eacd01e9815759e /app/client/modules/samplernn/samplernn.datasets.js | |
| parent | e243e4f65cc2c98724a1cfb4d28ac5f1d1bc0a79 (diff) | |
more sane file naming
Diffstat (limited to 'app/client/modules/samplernn/samplernn.datasets.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.datasets.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/app/client/modules/samplernn/samplernn.datasets.js b/app/client/modules/samplernn/samplernn.datasets.js index 3d4219e..9ee7618 100644 --- a/app/client/modules/samplernn/samplernn.datasets.js +++ b/app/client/modules/samplernn/samplernn.datasets.js @@ -19,7 +19,6 @@ const samplernnModule = { class SampleRNNDatasets extends Component { constructor(props){ super(props) - this.fileOptions = this.fileOptions.bind(this) this.pickFile = this.pickFile.bind(this) } componentWillMount(){ @@ -37,29 +36,6 @@ class SampleRNNDatasets extends Component { pickFile(file){ console.log('pick', file) } - fileOptions(file){ - if (file.activity === 'url' && !file.dataset) { - if (this.props.runner.cpu.status !== 'IDLE') { - return ( - <div className='gray'> - fetching... - </div> - ) - } else { - return ( - <div className='link' onClick={() => this.fetchURL(file.url)}> - fetch - </div> - ) - } - } - return ( - <div> - <div className='link' onClick={() => this.train(file)}>train</div> - {file.epoch == 0 && <div className='epochs'>{file.epochs} ep.</div>} - </div> - ) - } onDeleteFile(file){ const yes = confirm('Are you sure you want to delete this file?') if (yes) { @@ -116,7 +92,6 @@ class SampleRNNDatasets extends Component { fileListClassName='' rowClassName='input_file' fields={'name date size delete'} - options={this.fileOptions} onClick={onPickFile} onDelete={(file) => this.onDeleteFile(file)} /> |
