feat: patient view, media player, and rich editor enhancements
This commit is contained in:
@@ -28,21 +28,31 @@ protected function getHeaderWidgets(): array
|
||||
public function applyTableFilters(): void
|
||||
{
|
||||
parent::applyTableFilters();
|
||||
$this->applySortFromFilters();
|
||||
$this->dispatchStatsUpdate();
|
||||
}
|
||||
|
||||
public function updatedTableFilters(): void
|
||||
{
|
||||
parent::updatedTableFilters();
|
||||
$this->applySortFromFilters();
|
||||
$this->dispatchStatsUpdate();
|
||||
}
|
||||
|
||||
public function resetTableFiltersForm(): void
|
||||
{
|
||||
parent::resetTableFiltersForm();
|
||||
$this->tableSort = null;
|
||||
$this->dispatchStatsUpdate();
|
||||
}
|
||||
|
||||
protected function applySortFromFilters(): void
|
||||
{
|
||||
$filters = $this->tableFilters ?? [];
|
||||
$fromDate = ($filters['visit_date_range']['from_date'] ?? null) ?: null;
|
||||
|
||||
$this->tableSort = $fromDate ? 'visit_date:asc' : null;
|
||||
}
|
||||
protected function dispatchStatsUpdate(): void
|
||||
{
|
||||
$filters = $this->tableFilters ?? [];
|
||||
|
||||
Reference in New Issue
Block a user