YaleSTC / reservations

Manage equipment loans & reservations. Who can borrow what, for how long?
yalestc.github.io/reservations
MIT License
139 stars 58 forks source link

Triggering Multiple Consecutive Actions #1664

Open AlanLiu96 opened 7 years ago

AlanLiu96 commented 7 years ago

Throughout Reservations, if you press a button twice, or many times before the page loads, it sends the action consecutively. This can lead to multiple reservations being created (when the button is the confirm reservation button). Or, if the button is the confirm equipment checkout, it leads to multiple check-outs on the Notes (see SS). Another instance is creating an equipment item.

So far, there doesn't seem to be any large undoable damage that this bug can cause, but it would be best if we could resolve by making sure multiple consecutive actions aren't executed, and only the most recent one is.

I'm not sure how to implement this, or if this is just a byproduct of the fact that each action just triggers a route and there is nothing we can do.

image