I have…
- [x] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
When paging through assets, if I move assets to another folder resulting in no more assets displayed on that page, it is not obvious that a folder is not empty. We accidentally deleted a folder full of assets for our website because we clicked to the parent, then deleted the folder we thought was empty.
Expected behavior
Ideally if the final asset in a folder is moved or deleted, the current page would be set to (currentPage - 1) if the currentPage is > 0. Or, a message should be displayed letting the user know they are on a page of assets so they should click to a previous page.
Another option would be to soft-delete assets. This would be a huge help because you could go to another location to confirm the final deletion of an asset or assets. Recycle bin type functionality.
It could also be good to show the total number of assets in a folder after the folder name (e.g. “Folder Name (34)”)
Minimal reproduction of the problem
- Go to an assets folder with > 50 assets (or greater than the page count selected)
- Click the arrow in the bottom right corner to go to page 2.
- Delete or move all the images on page 2.
- NOTE: It appears that no more images are in the folder because it’s difficult to notice that you’re on page 2 and not page 1. Nothing obvious tells you there are still images in your folder.
- Click
- Delete folder
- Oops, all the assets in page 1 are gone and it was easy to miss that there were still images in the folder.
Environment
- [ ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [x] Cloud version
Version: [VERSION]
Browser:
- [x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
Maybe if the delete message reminded you of the folder count and made you double confirm the delete. That’s another idea.