diff options
Diffstat (limited to 'client/components/Browser')
| -rw-r--r-- | client/components/Browser/Folder/Files.jsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/client/components/Browser/Folder/Files.jsx b/client/components/Browser/Folder/Files.jsx index 7d439c5..f0ad95e 100644 --- a/client/components/Browser/Folder/Files.jsx +++ b/client/components/Browser/Folder/Files.jsx @@ -27,10 +27,6 @@ export default class Files extends Component { this.setState({ files }) } handleClick(file) { - if (file.type === 'audio') { - audioPlayFile(file) - document.body.style.backgroundImage = 'url(' + pngpath(file) + ')' - } this.setState({ selected: file }) } render() { @@ -39,8 +35,8 @@ export default class Files extends Component { return ( <div key={i} class={this.state.selected === file ? 'selected' : ''}> <span class='name'><FileLink file={file}>{file.name}</FileLink></span> - <span class='mime'>{file.mime}</span> - <span class='duration'>{file.duration.toFixed(1) + 's'}</span> + <span class='mime'>{file.processed ? file.mime : 'working...'}</span> + <span class='duration'>{file.duration ? (file.duration.toFixed(1) + 's') : ''}</span> <span class='actions'> <TaskContentLink file={file}>content</TaskContentLink> <TaskStyleLink file={file}>style</TaskStyleLink> |
