vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
202 stars 127 forks source link

Add new object property button shouldn't be available if neither of 'select from existing' nor 'provide selection' options set #3858

Open litvinovg opened 1 year ago

litvinovg commented 1 year ago

Describe the bug Add new object property button shouldn't be available if neither of 'select from existing' nor 'provide selection' options set

To Reproduce Steps to reproduce the behavior:

  1. Log in
  2. Create an object property, don't select 'select from existing' nor 'provide selection' options.
  3. Open individual page where the object property is listed
  4. Add button is going to be available image
  5. If you click on it error will appear because image

Expected behavior Add button shouldn't be available in case neither of options described above is set.

litvinovg commented 1 year ago

Edit button should also be hidden if neither of 'select from existing' nor 'provide selection' options set

chenejac commented 1 year ago

The linked PR has been reverted - https://github.com/vivo-project/Vitro/pull/389