FilterEditor: add possibility to fold and unfold filter by click

refs #12634

Signed-off-by: Alexander A. Klimov <alexander.klimov@icinga.com>
This commit is contained in:
Alexander A. Klimov 2016-12-07 18:26:45 +01:00
parent 0665ca387b
commit 69c8ed471b
1 changed files with 4 additions and 1 deletions

View File

@ -749,9 +749,12 @@ class FilterEditor extends AbstractWidget
$title .= ': ' . $this->view()->escape($this->filter);
}
}
$addOrPurgeModifyFilter = !($this->preservedUrl()->getParam('modifyFilter'));
return $html
. '<a href="'
. $this->preservedUrl()->with('modifyFilter', true)
. $this->preservedUrl()->with('modifyFilter', $addOrPurgeModifyFilter)
. '" aria-label="'
. $title
. '" title="'