Skip to content

Update delete site modal to delete files by default - #352

Merged
wojtekn merged 1 commit into
trunkfrom
update/delete-modal-to-delete-files-by-default
Jul 12, 2024
Merged

Update delete site modal to delete files by default#352
wojtekn merged 1 commit into
trunkfrom
update/delete-modal-to-delete-files-by-default

Conversation

@wojtekn

@wojtekn wojtekn commented Jul 11, 2024

Copy link
Copy Markdown
Contributor

Related to #303

Proposed Changes

I propose to change the delete site modal to automatically check the option to delete site's files.

Screenshot 2024-07-11 at 12 11 03

Testing Instructions

  1. Add a site
  2. Open Settings tab
  3. Click 'Delete site'
  4. Confirm that option is selected by default
  5. Submit and confirm that site's directory was deleted

Then test the opposite, so after unchecking option, site's files should stay.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@wojtekn
wojtekn requested a review from a team July 11, 2024 10:15
@wojtekn wojtekn self-assigned this Jul 11, 2024

@katinthehatsite katinthehatsite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes look clear and work as expected on my end:

Screenshot 2024-07-11 at 9 23 05 PM
@matt-west

Copy link
Copy Markdown
Contributor

Can we tweak the description copy so that it flows a bit better:

The site's database will be lost, along with all posts, pages, comments, and media.

@wojtekn
wojtekn merged commit c34bd02 into trunk Jul 12, 2024
@wojtekn
wojtekn deleted the update/delete-modal-to-delete-files-by-default branch July 12, 2024 09:23
@wojtekn

wojtekn commented Jul 12, 2024

Copy link
Copy Markdown
Contributor Author

@matt-west sure, but let's handle that under separate PR.

@matt-west

Copy link
Copy Markdown
Contributor

@wojtekn Opened a PR with the change here: #356

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants