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

[Gutenberg] cancel upload on image block removal #9402

Merged
merged 15 commits into from
Mar 19, 2019

Conversation

mzorz
Copy link
Contributor

@mzorz mzorz commented Mar 12, 2019

This PR implements media upload cancellation for Gutenberg deleted blocks.

Gutenberg PR WordPress/gutenberg#14391
Gutenberg mobile PR wordpress-mobile/gutenberg-mobile#736

To test:

  1. start a draft
  2. insert an image block
  3. choose an image from the device so it starts uploading
  4. once it starts uploading, tap on the block's trash icon
  5. observe the foreground upload notification is also dismissed (meaning, the upload has been cancelled).

Test the same on Aztec (to delete an image, just place the cursor to the right of an image and hit backspace) and verify the behavior described in step 5 above.

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

@marecar3
Copy link
Contributor

Hey @mzorz, can we refer to the GB mobile PR, so that we can easily find the corresponding PR?

@mzorz
Copy link
Contributor Author

mzorz commented Mar 12, 2019

Hey @mzorz, can we refer to the GB mobile PR, so that we can easily find the corresponding PR?

They were already linked, but updated the PR description to include those links now 👍

Copy link
Contributor

@marecar3 marecar3 left a comment

Choose a reason for hiding this comment

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

LGTM!

@mzorz mzorz merged commit 20e5372 into develop Mar 19, 2019
@mzorz mzorz deleted the fix/cancel-upload-on-image-block-removal branch March 19, 2019 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants