mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
services/grid: Fix search editor integration
This commit is contained in:
parent
8a58d32e3b
commit
7fe51b06c9
1 changed files with 22 additions and 0 deletions
|
|
@ -315,6 +315,10 @@ class ServicesController extends Controller
|
|||
$this->view->baseUrl->getParams()->addEncoded($name, $value);
|
||||
}
|
||||
|
||||
$searchBar->setEditorUrl(Url::fromPath(
|
||||
"icingadb/services/grid-search-editor"
|
||||
)->setParams($preservedParams));
|
||||
|
||||
$this->view->controls = $this->controls;
|
||||
|
||||
if ($flipped) {
|
||||
|
|
@ -339,6 +343,24 @@ class ServicesController extends Controller
|
|||
$this->setAutorefreshInterval(30);
|
||||
}
|
||||
|
||||
public function gridSearchEditorAction()
|
||||
{
|
||||
$editor = $this->createSearchEditor(
|
||||
Service::on($this->getDb()),
|
||||
Url::fromPath('icingadb/services/grid'),
|
||||
[
|
||||
LimitControl::DEFAULT_LIMIT_PARAM,
|
||||
SortControl::DEFAULT_SORT_PARAM,
|
||||
'flipped',
|
||||
'page',
|
||||
'problems'
|
||||
]
|
||||
);
|
||||
|
||||
$this->getDocument()->add($editor);
|
||||
$this->setTitle(t('Adjust Filter'));
|
||||
}
|
||||
|
||||
protected function fetchCommandTargets(): Query
|
||||
{
|
||||
$db = $this->getDb();
|
||||
|
|
|
|||
Loading…
Reference in a new issue