Added back the delete button

This commit is contained in:
Joren de Graaf
2026-08-11 02:27:56 +02:00
parent 8406c60182
commit 275cf62fea
3 changed files with 50 additions and 2 deletions
+4
View File
@@ -112,6 +112,10 @@ final class TaskController extends AbstractController
$entityManager->flush();
}
if ($request->headers->has('HX-Request')) {
return new Response('', Response::HTTP_OK);
}
return $this->redirectToRoute('app_task_index', [], Response::HTTP_SEE_OTHER);
}