The powers that be have decided that CodeMode needs some UI improvements when viewed from a desktop. Forget mobile, that's just a fad that will pass.
Task
- While the network request to submit the modal is in progress, the submit button should enter a loading state where it's disabled and the text is replaced with a loading spinner.
- Once the request completes, the button should return to normal and the modal should close like usual.
- You can find a few example spinners here: https://loading.io
- Bonus points if you use a static spinner and animate it using CSS
Tips
- The backend API for this application doesn't exist. You'll need to replace the API request in
projectRequests.service.js with a Promise in order to simulate the request.
- In order to test the submit button's loading state, you'll need to find a way to make the Promise resolve with a delay.
The powers that be have decided that CodeMode needs some UI improvements when viewed from a desktop. Forget mobile, that's just a fad that will pass.
Task
Tips
projectRequests.service.jswith a Promise in order to simulate the request.