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

feat: show delete confirmation dialog when clicking "Delete & re-draft" menu #2296

Merged
merged 2 commits into from Aug 2, 2023

Conversation

shuuji3
Copy link
Member

@shuuji3 shuuji3 commented Aug 1, 2023

resolve #2291

This change ensures to show the same dialog message as the "Delete" menu. I'm wondering if we'd better change the message but basically, both actions are warning about the same delete action so I assume the same message can be acceptable.

Screenshot 2023-08-02 at 2 05 58

@stackblitz
Copy link

stackblitz bot commented Aug 1, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Aug 1, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 712bb45
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/64ca3266a8381200087e5228
😎 Deploy Preview https://deploy-preview-2296--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 1, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 712bb45
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/64ca326622ea1e00081b930f

@shuuji3 shuuji3 marked this pull request as draft August 1, 2023 17:16
@shuuji3 shuuji3 marked this pull request as ready for review August 1, 2023 17:19
@shuuji3
Copy link
Member Author

shuuji3 commented Aug 1, 2023

Ah, it seems that the CI error is not related to this change. It started from this commit: e6172ad in the main branch.

@userquin
Copy link
Member

userquin commented Aug 1, 2023

What's the default button focused when shown (if any)? We should focus the cancel button.

Can you add Delete post title?
Can you also avoid center the mesaage?

Maybe the dialog component requires a review.

@antfu
Copy link
Member

antfu commented Aug 2, 2023

@userquin Yeah I agree we should revise the design of the confirm dialog. It's not blocking this PR tho.

@antfu antfu enabled auto-merge August 2, 2023 10:40
@antfu antfu added this pull request to the merge queue Aug 2, 2023
Merged via the queue into elk-zone:main with commit 0a8cc31 Aug 2, 2023
14 checks passed
@shuuji3
Copy link
Member Author

shuuji3 commented Aug 2, 2023

Thank you both! I also agree on the above suggestions will improve the dialog UI. I'm going to try to make a separate PR to adjust the layout and add a title to the dialog later. 🙂

@shuuji3 shuuji3 deleted the feat/show-delete-confirmation-dialog branch August 2, 2023 11:08
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.

Confirmation dialog for delete-and-redraft
3 participants