Created new react states for MetersCSVUploadComponent and ReadingsCSVUploadComponent. These determine if the form should be replaced with a SpinnerComponent. When the api is called to process meters or readings, the state is updated to show the spinner. After the call returns, it is updated again to remove the spinner. Also added a small div component with styling to center the spinner on the page.
Fixes #1193
Type of change
[ ] Note merging this changes the database configuration.
[x] I have removed text in ( ) from the issue request
[x] You acknowledge that every person contributing to this work has signed the OED Contributing License Agreement and each author is listed in the Description section.
Description
Created new react states for MetersCSVUploadComponent and ReadingsCSVUploadComponent. These determine if the form should be replaced with a SpinnerComponent. When the api is called to process meters or readings, the state is updated to show the spinner. After the call returns, it is updated again to remove the spinner. Also added a small div component with styling to center the spinner on the page.
Fixes #1193
Type of change
Checklist
Limitations
none