advanced-nova-media-library icon indicating copy to clipboard operation
advanced-nova-media-library copied to clipboard

Immediately delete image

Open davidrichied opened this issue 5 years ago • 1 comments

Hi,

Is there an option I can turn on to immediately delete an image when a user clicks the red trash icon?

Currently, under the available images, when the user clicks the red trash icon, it only deletes the image after the user clicks the button to update the model. Is there a way to immediately delete the image when the user clicks the red trash icon?

I am trying to do some image cleanup when images are deleted, but I don't think it's possible with the current setup. In model observers, in the updating and updated methods, I can see that all of the images are present which means that the images must be deleted after the model is updated. I created a Media observer, but that doesn't work for cleaning up the images either. If the user deletes more than one image, both images seem to be deleted simultaneously which means that one image does not know that the other image is being deleted.

Besides that, the add-on works great. Thanks!

~David

davidrichied avatar Sep 22 '20 00:09 davidrichied

A config option for a popup to ask would go a long way then auto delete it after clicking ok or straight away if popup not enabled.

LiamKarlMitchell avatar Oct 30 '22 01:10 LiamKarlMitchell