icgc-argo / dac-ui

Development of the ICGC ARGO Data Access Control UI
https://daco.icgc-argo.org/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Prevent Existing Collaborator from Being Added Second Time #696

Open b-f-chan opened 1 year ago

b-f-chan commented 1 year ago

Currently, when adding a new collaborator, the UI should NOT let you re-add an existing collaborator (should validate that the email is already in use).

The UI allows you to make the add request, but ONLY shows an error AFTER you make the request. Expected behaviour is that the request should not be possible and validation should reject immediately and show the error inline with the email field.

Basically, the behaviour should exist like validation for when user tries to add applicant as collaborator.

image.png