Hide a component and show another if it 's in the DB

Hi everyone,

I’m actually working on an app, more prcisely I’m working to the bookmarks system. When you want to add an image to your bookmarks, you just click on the bookmark ’ s button, so this button is hidden and another is shown on the web page. The button shown is yellow and it supposed to notify that you’ve just sent your image to your bookmarks. However, when the image is already in the bookmarks, I want to display only the yellow button and not the other one. How can I do that please ?

Any help would be much apprciated.

Regards.

YT

Add conditions on the buttons to only be visible when bookmark’s image is empty and vice versa.

This topic was automatically closed after 70 days. New replies are no longer allowed.