Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite request spinner when cancelling "Send and Download" #2721

Merged

Conversation

jgiovaresco
Copy link
Contributor

@jgiovaresco jgiovaresco commented Oct 14, 2020

We were hiding the spinner at the end of the _handleSendAndDownloadRequestWithEnvironment method. However, we
were exiting early we the user cancel the save dialog (L672).

To prevent that, I've moved the code in a finally block, therefore we make sure that the spinner will be hidden

Closes #2718

Before
BEFORE

After
AFTER

Copy link
Contributor

@develohpanda develohpanda 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 to me! Nice, clean fix.

Could you please:

  • move the button rename to a separate PR (with screenshots of what changes will be seen by the user)
  • add a gif to this PR to show the cancellation logic working

We were hiding the spinner at the end of the _handleSendAndDownloadRequestWithEnvironment method. However, we
were exiting early we the user cancel the save dialog (L672).

To prevent that, I've moved the code in a finally block, therefore we make sure that the spinner will be hidden

Closes Kong#2718
@jgiovaresco jgiovaresco force-pushed the fix/2718-infinite-request-spinner branch from a4741e5 to 604b76b Compare October 20, 2020 06:00
@develohpanda develohpanda merged commit ceead25 into Kong:develop Oct 20, 2020
@jgiovaresco jgiovaresco deleted the fix/2718-infinite-request-spinner branch October 20, 2020 06:50
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.

Infinite Request Spinner when cancelling "Send and Download"
3 participants