-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extend dropzone to page (#942)
- The dropzone was extended to the whole page - We can now drop a file in any page: it is added to the root folder and the user redirected to the files page - In the files page we can still drop the files in specific folders as before ![dropit](https://user-images.githubusercontent.com/33324750/51401787-98b0e780-1b43-11e9-965c-493dd9f4e2bd.gif) Closes #916.
- Loading branch information
Showing
4 changed files
with
68 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -334,6 +334,7 @@ const dropTarget = { | |
} | ||
|
||
const item = monitor.getItem() | ||
|
||
onAddFiles(item) | ||
} | ||
} | ||
|