Add loading state to action buttons to prevent double clicking
Din from Lunch Money
When adding a new transaction in the Transactions table, the 'Add' button shows a loading state after clicking (see image 1). This will help prevent double clicking while the action is still loading (see image 2).
The same behavior should be applied to other action buttons, such as the 'Create transaction' button (see image 3).
Log In
J
Jonathan Lovelace
My previouly-reported https://feedback.lunchmoney.app/bugs/p/budget-v2-clicking-move-multiple-times-repeats-the-operation is a specific instance of this, and so maybe should be merged in.
I'll also add that since, as I mentioned in that report, I sometimes use LM with a mouse that gives multiple clicks (faster than I could have triggered the button if I'd wanted to) or none when I try to click a single time, I'd be somewhat concerned that a second click could register before the code replacing the button with the "loading state" ran, so some additional immediate-duplicate-request detection may perhaps be a prudent addition.