moorhen-coot / Moorhen

A JavaScript molecular graphics program
https://moorhen.org
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

Add button to copy fitted ligand into new molecule #435

Closed FilomenoSanchez closed 6 days ago

FilomenoSanchez commented 6 days ago

This update adds the option to have two separate buttons in the "Find ligand" menu:

Which buttons are rendered is now controlled from the MoorhenContainer by passing two new props: allowAddNewFittedLigand and allowMergeFittedLigand. By default, the app will retain the current behavior (only show a button to merge the ligand) but this can be changed easily in the future if we wish to do so.