Add frontend component to allow hard deleting an organization
Created by: miveronese
Jira Ticket: CLOUD-81
This PR adds the frontend changes to allow Cloud users that are org members to hard delete the organizations they belong to.
Test plan
For manual tests
- When not in DotCom mode, the new component should not be visible and the current flow for deleting an org won't change
- Run
sg start
, create an org and visit the org Settings Page. - The "Delete this Organization" component should not be visible
- Go to the Site Admin area > Organization and delete the new organization.
- Check the database to confirm that the org has been only soft deleted but not hard deleted.
- When in DotCom mode, the new component should be visible and orgs can be hard deleted by org members
- Run
sg start dotcom
, create an org and visit the org Settings Page. - The "Delete this Organization" component should be visible.
- Delete the new organization. You should be redirected to the User Settings page.
- Check the database to confirm that the org has been hard deleted.
Videos showing case 1 and 2: https://user-images.githubusercontent.com/1552863/156676333-286463ef-aa4d-4eb8-8e7d-6c80ba66970c.mov https://user-images.githubusercontent.com/1552863/156676371-b36058a6-e334-4b09-9f7e-705ba90aa69b.mov