Skip to content

fix : added delete confirmation modal before task deletion - #2072

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#2067
Open

fix : added delete confirmation modal before task deletion#2072
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#2067

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

Added a confirmation modal that appears before a task is deleted, giving users a chance to confirm or cancel the deletion.

Changes Made

  • frontend/src/components/Task/TaskItem.jsx: Added showDeleteConfirm state and handleDeleteClick/confirmDelete/cancelDelete handlers. The delete button now triggers a centered modal overlay asking "Delete Task?" with Cancel and Delete buttons. The modal only renders when showDeleteConfirm is true.

Impact it Made

Prevents accidental task deletions with a single misclick by requiring explicit confirmation before calling onDelete.

Closes #2067

Note: please assign this PR to the tmdeveloper007 account.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix : add delete confirmation modal before task deletion

1 participant