harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Prevent multiple document adds when adding legal docs #1964

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

Followup to #1963

It's possible, if you really love clicking buttons, to click multiple times and add multiple copies of the same document when using the new add-legal-doc flow.

Once the user has made a selection from the search results, additional clicks should not trigger new POST events, and only one copy of the document should be added to the casebook per search.