From 3d3a7b80d34c100846c8ae130b424b63ba3c0784 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 7 Jul 2017 19:18:48 +0200 Subject: socket io communication --- client/components/Browser/Folder/Files.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'client/components/Browser') 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 (
{file.name} - {file.mime} - {file.duration.toFixed(1) + 's'} + {file.processed ? file.mime : 'working...'} + {file.duration ? (file.duration.toFixed(1) + 's') : ''} content style -- cgit v1.2.3-70-g09d2