diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-03 14:46:18 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-03 14:46:18 +0200 |
| commit | a450fa75edb927b7568b8a3198f9209c6a4c7f79 (patch) | |
| tree | 67a9baa716c6f12f2ed3a8e4ba69e942fb309687 /app/client/common/fileList.component.js | |
| parent | 198c41778cfe39d37aab92c08325dc8c9d4437a0 (diff) | |
adjusting the form, calling samplernn tasks
Diffstat (limited to 'app/client/common/fileList.component.js')
| -rw-r--r-- | app/client/common/fileList.component.js | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/app/client/common/fileList.component.js b/app/client/common/fileList.component.js index c16928f..f596c8d 100644 --- a/app/client/common/fileList.component.js +++ b/app/client/common/fileList.component.js @@ -30,13 +30,22 @@ export const FileList = props => { onClick /> }) + if (! (files && files.length)) { + return ( + <div className={'rows ' + className}> + <div class='row heading'> + <h4 class='noFiles'>No files</h4> + </div> + </div> + ) + } return ( <div className={'rows ' + className}> - <div class='row heading'> - {(files && files.length) - ? (title && <h3>{title}</h3>) - : <h4>No files</h4>} - </div> + {title && + <div class='row heading'> + <h3>{title}</h3>} + </div> + } <div className={'rows ' + fileListClassName}> {fileList} |
