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

Handle empty directory drag-and-drop in Files UI #29592

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

julien-nc
Copy link
Member

refs #11864

This is highly inspired by owncloud/core#39285 😁.

This fixes 2 use cases:

  • dropping an empty directory in Files
  • dropping a directory which contains directories (any depth) but no files

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
@julien-nc julien-nc added this to the Nextcloud 24 milestone Nov 8, 2021
@julien-nc julien-nc requested review from a team, PVince81, artonge and Pytal and removed request for a team November 8, 2021 11:31
@@ -1029,7 +1029,12 @@
} else {
paramNameSet = paramName;
}
data.originalFiles = files;
data.originalFiles = [];
Copy link
Member

Choose a reason for hiding this comment

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

aha, I knew that one needed to hack the library! good to see that the browsers do support empty folders

@julien-nc julien-nc merged commit 7c516a1 into master Nov 8, 2021
@julien-nc julien-nc deleted the enh/11864/drag-n-drop-empty-directory branch November 8, 2021 16:17
@julien-nc
Copy link
Member Author

@skjnldsv Can we backport this to 22 and 21? I think it would make sense 😁.

@julien-nc
Copy link
Member Author

/backport to stable21

@julien-nc
Copy link
Member Author

/backport to stable22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants