fix(projects): add delete affordance to project tasks #242
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-237-task-delete-affordance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The shared TaskEditModal could create and edit project tasks but never
delete them, and neither task list (ProjectDetailPage, ProjectTasksPage)
exposed a delete control, even though projects/assets/appointments
elsewhere offer Delete. Add a Danger "Delete" button to the modal footer
that opens the styled ConfirmDialog and fires DELETE /tasks/{id} on
confirm, then reports back through a new ondeleted handler so both
callers clear the selection and refresh their task list. Both list pages
reach this single shared modal on row click, so the affordance is now
available everywhere a task is opened.
#MAPPS-237
The shared TaskEditModal could create and edit project tasks but never delete them, and neither task list (ProjectDetailPage, ProjectTasksPage) exposed a delete control, even though projects/assets/appointments elsewhere offer Delete. Add a Danger "Delete" button to the modal footer that opens the styled ConfirmDialog and fires DELETE /tasks/{id} on confirm, then reports back through a new ondeleted handler so both callers clear the selection and refresh their task list. Both list pages reach this single shared modal on row click, so the affordance is now available everywhere a task is opened. #MAPPS-237