mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Change disable drop on trash
This commit is contained in:
@@ -355,8 +355,9 @@ class NoteList extends React.Component {
|
||||
|
||||
handleDrop (e) {
|
||||
e.preventDefault()
|
||||
const { location } = this.props
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user