-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feature deleting images #1861
Comments
👍 for this! |
I believe this is because crudify doesn't respect paging when destroying: https://github.com/resolve/refinerycms/blob/master/core/lib/refinery/crud.rb#L148-L156 |
This is definitely doable, you just have to watch out for the edge case of deleting the last image on a page. |
@gwagener what would happen if you did? |
It should be smart enough to redirect to previous (if it exists) or stay on the first (if it's the only one) page. |
I've opened a pull request #2101 which implements this feature for 2.1.0 :) thanks. |
When i'm on page 3 of my images for example, and i delete one, i land on page 1. So i first must go back page 3 to delete more images of the same project for example. I would be nice if i could stay on the same page to delete more images.
The text was updated successfully, but these errors were encountered: