Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle file-drop inside empty dir #1020

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

olizilla
Copy link
Member

if you drop files inside dirs that have zero or fewer items than
fills the vertical height, the drop would land on the app rather
than the file list, which would cause files dropped inside the dir
to be added at the root rather than the dir.

This PR is a quick fix to ensure the drops handled at the app level
add the files to the current dir where we are on the files page.

Before After
webui-drop-on-empty-dir-before webui-drop-on-empty-dir-after

License: MIT
Signed-off-by: Oli Evans oli@tableflip.io

if you drop files inside dirs that have zero or fewer items than
fills the vertical height, the drop would land on the app rather
than the file list, which would cause files dropped inside the dir
to be added at the root rather than the dir.

This PR is a quick fix to ensure the drops handled at the app level
add the files to the current dir where we are on the files page.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@ghost ghost assigned olizilla Apr 24, 2019
@ghost ghost added the status/in-progress In progress label Apr 24, 2019
@olizilla olizilla requested a review from fsdiogo April 24, 2019 10:11
Copy link
Contributor

@fsdiogo fsdiogo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice catch @olizilla 👍

@olizilla olizilla merged commit ff97e5b into master Apr 29, 2019
@olizilla olizilla deleted the handle-file-drop-in-empty-subdir branch April 29, 2019 08:46
@ghost ghost removed the status/in-progress In progress label Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants