Vendors can remove images from listings even when required

Hello,

When editing a listing, if a vendor clicks the X button on all of their images and removes them all (even without saving changes), they are deleted from the listing. This still happens when requiring images with a snippet from your github (the snippet works fine). Is there a way to prevent this? Or, is there a way to get the # of uploaded images, and if the number is equal to 1, I’ll hide the X button with display:none.

Ideally, the button wouldn’t delete any photos until the settings are saved. I imagine this is a bug.

Thank you,
Andrew

Thanks for reporting this, the bug is confirmed and we’ll fix it as soon as possible.

1 Like

Hello,

The same thing happens for profile images (and I imagine request images). For profile images, I simply used display:none to hide the button and it works perfectly, since there’s only 1 image. It’s not that easy for listings or requests. Thank you!

Best regards,
Andrew

Please try this CSS code snippet as a temporary solution

.hp-form--listing-update .hp-field--attachment-upload .hp-row div:only-child a{
	display: none;
}
1 Like

Hello,

Thank you, I’ll use this for now.

Best regards,
Andrew