Adds loading states to table related api actions on the frontend. This allows us to disable the button after a request is initiated, preventing a user from double clicking a button and performing it twice when it is only intended to happen once.
I ended up doing it on a per api call basis in the table state, I'm sure there is probably a more elegant solution that exists in the world, but this fits our project.
Didn't end up adding the loader icon, as fa-icons doesn't support gifs for free. But the actions load fast enough that I don't think it is necessary tbh.
Linked Issue
resolves #259
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Merge Checklist
[x] My code follows the code style of this project.
[x] All new and existing tests passed.
[x] Any dependent changes have been merged in downstream modules.
[x] I have provided inline technical documentation (tsdocs) where necessary.
[ ] My change requires a change to the root documentation.
Proposed Changes
Adds loading states to table related api actions on the frontend. This allows us to disable the button after a request is initiated, preventing a user from double clicking a button and performing it twice when it is only intended to happen once.
I ended up doing it on a per api call basis in the table state, I'm sure there is probably a more elegant solution that exists in the world, but this fits our project.
Didn't end up adding the loader icon, as fa-icons doesn't support gifs for free. But the actions load fast enough that I don't think it is necessary tbh.
Linked Issue
resolves #259
Types of changes
Merge Checklist
Deployment Notes