Add confirmation dialog when deleting project.

This commit is contained in:
antanst 2025-08-08 22:30:27 +03:00 committed by Chris
parent c9103deb48
commit 1f577fc410
3 changed files with 17 additions and 8 deletions

View file

@ -1059,8 +1059,14 @@ const ProjectDetails: React.FC = () => {
)}
{isConfirmDialogOpen && !noteToDelete && (
<ConfirmDialog
title="Delete Project"
message={`Are you sure you want to delete the project "${project.name}"?`}
title={t(
'modals.deleteProject.title',
'Delete Project'
)}
message={t(
'modals.deleteProject.message',
'Deleting this project will remove the project only. All items inside will be retained but will no longer belong to any project. Continue?'
)}
onConfirm={handleDeleteProject}
onCancel={() => setIsConfirmDialogOpen(false)}
/>