-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Adds the new replace flow to the video block #19162
Conversation
152aa55
to
f923d8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The replacement flow works great 👍. If we don't use the state editing
anymore, we can remove it from this component.
f923d8f
to
960fdaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great.
We can remove some old comments. Maybe we can do it in another PR.
@@ -47,10 +47,6 @@ class VideoEdit extends Component { | |||
super( ...arguments ); | |||
// edit component has its own src in the state so it can be edited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The src
state was removed in #6820, so we can remove this comment.
@@ -95,8 +90,7 @@ class VideoEdit extends Component { | |||
const { attributes, setAttributes } = this.props; | |||
const { src } = attributes; | |||
|
|||
// Set the block's src from the edit component's state, and switch off | |||
// the editing UI. | |||
// Set the block's src from the edit component's state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also can remove this comment, it's not valid since #6820
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, so we can merge it.
Description
There is a new replace flow offered by a component which is currently implemented in the Image Block. This PR implements the new flow in the Audio Block.
How has this been tested?
Tested locally.
Screenshots