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

[Admin Panel] Make it possible to delete agencies #1300

Open
lilidworkin opened this issue Apr 11, 2024 · 0 comments
Open

[Admin Panel] Make it possible to delete agencies #1300

lilidworkin opened this issue Apr 11, 2024 · 0 comments

Comments

@lilidworkin
Copy link
Collaborator

It's currently possible to delete users via the Admin Panel -- if you hover over the card, a red trash icon appears in the bottom right. If you click it, a confirmation modal appears.

We'd like to add the same behavior for deleting agencies! It should work similarly with the red trashcan and the confirmation modal.

Unfortunately the backend API for this does not exist yet, but for now you can imagine that there will be an endpoint /admin/agency/<id> DELETE, and build everything assuming that will work.

But since that endpoint won't actually work just yet, let's only show the trashcan if the user's role is AgencyTeamMemberRole.JUSTICE_COUNTS_ADMIN -- that way this won't go live yet to anyone besides us!

cc @mxosman

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

No branches or pull requests

3 participants