From 3d3a7b80d34c100846c8ae130b424b63ba3c0784 Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
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/Folder/Files.jsx')

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>
-- 
cgit v1.2.3-70-g09d2

