mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
action-list.js: Don't add footer for list in .controls (#867)
fixes #866
This commit is contained in:
commit
84eeeaa57d
4 changed files with 6 additions and 2 deletions
|
|
@ -168,6 +168,7 @@ class HostsController extends Controller
|
|||
$this->addControl(
|
||||
(new HostList($results))
|
||||
->setViewMode('minimal')
|
||||
->setDetailActionsDisabled()
|
||||
);
|
||||
$this->addControl(new ShowMore(
|
||||
$results,
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ class ServicesController extends Controller
|
|||
$this->addControl(
|
||||
(new ServiceList($results))
|
||||
->setViewMode('minimal')
|
||||
->setDetailActionsDisabled()
|
||||
);
|
||||
$this->addControl(new ShowMore(
|
||||
$results,
|
||||
|
|
|
|||
|
|
@ -133,7 +133,9 @@ trait DetailActions
|
|||
public function addDetailFilterAttribute(BaseHtmlElement $element, Filter\Rule $filter): self
|
||||
{
|
||||
$element->getAttributes()
|
||||
->set('data-action-item', true)
|
||||
->registerAttributeCallback('data-action-item', function () {
|
||||
return ! $this->getDetailActionsDisabled();
|
||||
})
|
||||
->registerAttributeCallback('data-icinga-detail-filter', function () use ($filter) {
|
||||
return $this->getDetailActionsDisabled() ? null : QueryString::render($filter);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -719,7 +719,7 @@
|
|||
}
|
||||
|
||||
if (isTopLevelContainer) {
|
||||
let footerList = list ?? container.querySelector('.action-list');
|
||||
let footerList = list ?? container.querySelector('.content > .action-list');
|
||||
if (footerList) {
|
||||
_this.addSelectionCountToFooter(footerList);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue