Added back the delete button
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user