Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #5093

Category None
Changed by Dan Wells <dbw2ohnoyoudont@calvin.edu>
Changed at Tue 20 Feb 2018 13:06:27
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision 760140b2b5fe9762213f307ad3718185c6900144


LP#1749992 Disable payment button during payment
Since the display is not refreshed until the payment finishes, it
is possible to fire off a second payment by double-clicking.

This commit is a simple way to disable the button while a payment is
in process, then enable it again after the display refreshes.

Since the 'sendPayment()' function is wrapped, we may need to move
this logic up, but this being a single promise is simpler, and it
solved the problem in testing.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Jason Stephenson <jason@sigio.com>

Changed files