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

Connect Delete button in Author detail page #533

Closed
karolina-siemieniuk-morawska opened this issue Aug 14, 2024 · 2 comments
Closed

Connect Delete button in Author detail page #533

karolina-siemieniuk-morawska opened this issue Aug 14, 2024 · 2 comments

Comments

@karolina-siemieniuk-morawska
Copy link
Collaborator

After #532 is done, connect Delete button in Danger area section to endpoint.

@drjova
Copy link
Contributor

drjova commented Aug 15, 2024

Needs #532

@karolina-siemieniuk-morawska
Copy link
Collaborator Author

TECH NOTES:

  1. Create new component DeleteWorkflow.tsx in /holdingpen-new/components directory. The component should receive workflow id as props and contain <Button className="font-white bg-error">Delete</Button> that opens confirmation modal. On confirming, it should dispatch deleteWorkflow action
  2. In holdingpen.ts create a new action deleteWorkflow. It should send a DELETE request to /api/workflows/<id> endpoint and display success notification if delete was successful or error notification if not. After response from endpoint it should close modal.
  3. In AuthorDetailPageContainer.tsx line 188 use this component.

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

2 participants