-
Notifications
You must be signed in to change notification settings - Fork 106
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
Prevent accidentical removal of whole folder instead of deleting selected assets / objects #390
Prevent accidentical removal of whole folder instead of deleting selected assets / objects #390
Conversation
…they are removing if not removing current folder. Also added a counter and full path of removing items inside confirmation popup.
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so far, found only some html improvement that could be done
@fashxp wdty? this change makes this Alternatively, we should split in 2 separated buttons (one folder+bin icon eg. combination of 📁❌ and one as delete selection that appears only there's any selection, plus a "clear selection" shortcut ) |
Co-authored-by: JiaJia Ji <kingjia90@gmail.com>
Co-authored-by: JiaJia Ji <kingjia90@gmail.com>
@kingjia90 I like the idea. We need to make sure though, that the delete button also works if grid not loaded yet - e.g. when grid-tab not opened for assets, or when class selection necessary in objects grid. |
Co-authored-by: JiaJia Ji <kingjia90@gmail.com>
Quality Gate passedIssues Measures |
This comment was marked as outdated.
This comment was marked as outdated.
@kingjia90 any update on this? can we continue here? |
Thank you both for the changes and the reminder! |
@kingjia90 Changelog entry added. |
Quality Gate passedIssues Measures |
Theoretically the grid is easy:
In practice a lot of users accidentically remove the whole folder although they wanted to delete only some assets / objects. The reason is that they select some items in the grid with the checkboxes and then they click the Delete button in the toolbar. After confirming the deletion the whole folder is gone instead of the selected items.
With this PR, is some items are selected and the "Delete folder" button gets clicked, the same behaviour gets used as if the right-click contextmenu > Delete would have been used.
In other words: Only if no items are selected in the grid, the button will delete the whole folder.