feat/task-type-hierarchy #3

Merged
hzhang merged 12 commits from feat/task-type-hierarchy into main 2026-03-12 13:05:21 +00:00
Showing only changes of commit 5e8d4ada0a - Show all commits

View File

@@ -79,7 +79,11 @@ export default function ProjectDetailPage() {
}
const deleteProject = async () => {
if (!confirm('Delete this project?')) return
const confirmName = prompt(`Type the project name "${project?.name}" to confirm deletion:`)
if (confirmName !== project?.name) {
alert('Project name does not match. Deletion cancelled.')
return
}
await api.delete(`/projects/${id}`)
navigate('/projects')
}