From f8b61281be84a6e4e7a44be5109e688a7c56c671 Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Fri, 7 Jul 2017 21:18:33 +0200
Subject: refactor files so list updates while processing

---
 .../components/Browser/Folder/FileUploadButton.jsx | 35 ----------------------
 1 file changed, 35 deletions(-)
 delete mode 100644 client/components/Browser/Folder/FileUploadButton.jsx

(limited to 'client/components/Browser/Folder/FileUploadButton.jsx')

diff --git a/client/components/Browser/Folder/FileUploadButton.jsx b/client/components/Browser/Folder/FileUploadButton.jsx
deleted file mode 100644
index 136cd45..0000000
--- a/client/components/Browser/Folder/FileUploadButton.jsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import { h, Component } from 'preact'
-
-import client from '../../../client.js'
-
-export default class Folder extends Component {
-  constructor(props) {
-    super()
-    this.state = {
-    }
-    this.updateFiles = this.updateFiles.bind(this)
-  }
-  updateFiles(event){
-    const name = event.target.name
-    const files = event.target.files
-    client.upload(this.props.folder.id, files).then( got_files => {
-      this.props.addFiles(got_files)
-    })
-  }
-
-  render() {
-    const files = (this.props.folder.files || []).map( (file, i) => {
-      return (
-        <div key={i}>
-          {file.name}
-        </div>
-      )
-    })
-    return (
-      <div class='fileUploadButton'>
-        <input type='file' multiple name='files' onChange={this.updateFiles} />
-        <span>+ upload</span>
-      </div>
-    )
-  }
-}
-- 
cgit v1.2.3-70-g09d2

