chg: [genericElement:index] Highlight filtering button if filters are present

pull/93/head
Sami Mokaddem 2021-11-10 15:34:33 +01:00
parent 33c83f4020
commit fc0f12e38e
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@
} }
$buttonConfig = [ $buttonConfig = [
'icon' => 'filter', 'icon' => 'filter',
'variant' => $numberActiveFilters > 0 ? 'warning' : 'primary',
'params' => [ 'params' => [
'title' => __('Filter index'), 'title' => __('Filter index'),
'id' => sprintf('toggleFilterButton-%s', h($tableRandomValue)) 'id' => sprintf('toggleFilterButton-%s', h($tableRandomValue))