feat: hide past assignments by default, include via filtersetting
This commit is contained in:
1 parent
dcaf338da8
commit
5a0c998d2b
5 files changed
+30
No files matched your search
@@ -18,6 +18,7 @@ class AssignmentFilterDto extends AbstractFilterDto
|
||||
protected ?string $hotel = null;
|
||||
protected ?int $duration = null;
|
||||
protected ?string $status = null;
|
||||
protected bool $includePast = false;
|
||||
|
||||
public function getDateFrom(): ?\DateTimeImmutable
|
||||
{
|
||||
@@ -90,4 +91,16 @@ class AssignmentFilterDto extends AbstractFilterDto
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isIncludePast(): bool
|
||||
{
|
||||
return $this->includePast;
|
||||
}
|
||||
|
||||
public function setIncludePast(bool $includePast): static
|
||||
{
|
||||
$this->includePast = $includePast;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user