-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Dataviews: Add confirmation step before deleting a page #56504
Dataviews: Add confirmation step before deleting a page #56504
Conversation
return status !== 'trash'; | ||
}, | ||
hideModalHeader: true, | ||
RenderModal: ( { item: post, closeModal } ) => { |
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.
In essence the changes are:
- add
hideModalHeader
andRenderModal
RenderModal
absorbs thecallback
- use a plain object instead of a hook.
Size Change: +1.63 kB (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in 2243916. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6980639723
|
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.
I tweaked the docs in 517612a, but otherwise LGTM!
* Dataviews: Add confirmation step before deleting a page * Update component docs for DataViews --------- Co-authored-by: Miguel Fonseca <[email protected]>
What?
This PR adds a confirmation modal before deleting a page in pages list(DataViews).
Testing Instructions