summaryrefslogtreecommitdiff
path: root/app/client/modules/samplernn
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-29 19:32:27 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-29 19:32:27 +0200
commit400f5c15bcbdae2aef1a4aa0ca5e518ebffc2ad7 (patch)
treed095a336d33d5c15bc600e61bf8b8483fd5bd97e /app/client/modules/samplernn
parent24135cf037085f2ae7d70e48f023614435e29b3f (diff)
better the file the list
Diffstat (limited to 'app/client/modules/samplernn')
-rw-r--r--app/client/modules/samplernn/datasets.component.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/client/modules/samplernn/datasets.component.js b/app/client/modules/samplernn/datasets.component.js
index 8f0d59a..ae51c0f 100644
--- a/app/client/modules/samplernn/datasets.component.js
+++ b/app/client/modules/samplernn/datasets.component.js
@@ -29,6 +29,7 @@ class SampleRNNDatasets extends Component {
this.handleURL = this.handleURL.bind(this)
this.fetchURL = this.fetchURL.bind(this)
this.fileOptions = this.fileOptions.bind(this)
+ this.pickFile = this.pickFile.bind(this)
props.actions.folder.index({ module: 'samplernn' })
props.actions.file.index({ module: 'samplernn' })
}
@@ -92,6 +93,9 @@ class SampleRNNDatasets extends Component {
opt: { url }
}, { preempt: true, watch: true })
}
+ pickFile(file){
+ console.log('pick', file)
+ }
fileOptions(file){
console.log(file)
if (file.activity === 'url' && !file.dataset) {
@@ -155,6 +159,7 @@ class SampleRNNDatasets extends Component {
<FileList
files={samplernn.files}
options={this.fileOptions}
+ onClick={this.pickFile}
linkFiles
/>
</div>