1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Change disable drop on trash

This commit is contained in:
asmsuechan
2017-08-12 11:54:53 +09:00
parent 42a9caf5a3
commit 6aaf9d9eb2

View File

@@ -355,8 +355,9 @@ class NoteList extends React.Component {
handleDrop (e) { handleDrop (e) {
e.preventDefault() e.preventDefault()
const { location } = this.props
const filepaths = Array.from(e.dataTransfer.files).map(file => { return file.path }) const filepaths = Array.from(e.dataTransfer.files).map(file => { return file.path })
this.addNotes(filepaths) if (!location.pathname.match(/\/trashed/)) this.addNotes(filepaths)
} }
// Add notes in the current folder // Add notes in the current folder