Skip to content

Conversation

@briri
Copy link
Contributor

@briri briri commented Jun 25, 2021

Fixes #1310 and also Part of #2930

  • Add a spinner gif
  • Add JS logic to display the spinner when a UJS Ajax call begins and then hide it once the request is complete.

Note that in some scenarios (e.g. editing a plan answer) we are not using UJS and are using JQuery's $.ajax call directly, so the spinner does not appear. We could update the JS here to allow it to be exported and then have the direct AJAX calls invoke toggleSpinner(); directly but I don't think its necessary since the longer running ones have visual cues like "Saving ..."

Copy link
Contributor

@raycarrick-ed raycarrick-ed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@raycarrick-ed raycarrick-ed merged commit 6e1d0d3 into development Jul 15, 2021
@briri briri deleted the add-spinner branch September 8, 2021 21:31
portagenetwork pushed a commit to portagenetwork/roadmap that referenced this pull request Feb 24, 2022
Adds a spinner for all UJS ajax calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants