mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
History: Add sort control
This commit is contained in:
parent
80c87e6200
commit
c795db5313
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,12 @@ class HistoryController extends Controller
|
|||
|
||||
$limitControl = $this->createLimitControl();
|
||||
$paginationControl = $this->createPaginationControl($history);
|
||||
$sortControl = $this->createSortControl(
|
||||
$history,
|
||||
[
|
||||
'history.event_time desc' => $this->translate('Event Time')
|
||||
]
|
||||
);
|
||||
$filterControl = $this->createFilterControl($history);
|
||||
|
||||
$this->filter($history);
|
||||
|
|
@ -36,6 +42,7 @@ class HistoryController extends Controller
|
|||
yield $this->export($history);
|
||||
|
||||
$this->addControl($paginationControl);
|
||||
$this->addControl($sortControl);
|
||||
$this->addControl($limitControl);
|
||||
$this->addControl($filterControl);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue