Add confirmation dialog when deleting project.
This commit is contained in:
parent
c9103deb48
commit
1f577fc410
3 changed files with 17 additions and 8 deletions
|
|
@ -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)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue