-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Fail to cut and paste folder inside itself #638
base: main
Are you sure you want to change the base?
Fail to cut and paste folder inside itself #638
Conversation
✅ Deploy Preview for superfile canceled.
|
before, this would fail only when cuting and pasting a directory, now the file path is checked before any pasting operation (copy, cut, etc)
Forgot about the other types of pasting. Now it checks for the path before performing any type in elementPaste. Still missing the tests cases thought. Never implemented a test in this project, gonna look into it. |
@GRFreire When you are done, please ping me once. I would like to review the changes once. |
Fails the moveElement operation when trying to move something into itself.
For now, the only thing it does is failing the operation, but does not open a modal for warning. It leaves the process cancellation (UI) to the pasteItem handler. If an modal is wanted, I can try to add to this PR, otherwise, it can be left like this - only failing but no communication to the user - with the issue solved.
Fixes #570