Feat: Improve assignment filter ux
This commit is contained in:
@@ -32,8 +32,8 @@ class AssignmentFilterHandler
|
||||
$filterDto = $form->getData();
|
||||
|
||||
if ($form->get('reset')->isClicked()) {
|
||||
$filterDto = new AssignmentFilterDto(true);
|
||||
$this->getSession()->remove($this->namespace);
|
||||
$filterDto = new AssignmentFilterDto();
|
||||
$this->resetFilterSettings();
|
||||
} elseif ($form->get('apply')->isClicked()) {
|
||||
$this->saveFilterSettings($filterDto);
|
||||
}
|
||||
@@ -41,6 +41,11 @@ class AssignmentFilterHandler
|
||||
return $filterDto;
|
||||
}
|
||||
|
||||
public function resetFilterSettings(): void
|
||||
{
|
||||
$this->getSession()->remove($this->namespace);
|
||||
}
|
||||
|
||||
public function getFilterSettings(): AssignmentFilterDto
|
||||
{
|
||||
if (null === $data = $this->getSession()->get($this->namespace)) {
|
||||
|
||||
Reference in New Issue
Block a user