Feat: Improve assignment filter ux
This commit is contained in:
@@ -10,6 +10,7 @@ use App\Service\Common\AssignmentFilterHandler;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\Security\Http\Attribute\IsGranted;
|
||||
|
||||
@@ -56,4 +57,13 @@ class AssignmentFilterController extends AbstractController
|
||||
|
||||
return $this->json($response);
|
||||
}
|
||||
|
||||
#[Route('/common/assignment/filter/reset', name: 'app_common_assignment_filter_reset')]
|
||||
public function reset(Request $request): Response
|
||||
{
|
||||
$this->filterHandler->resetFilterSettings();
|
||||
$returnUrl = $this->getReturnUrl($request, 'app_admin_assignment_index');
|
||||
|
||||
return $this->redirect($returnUrl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user