Skip to content

Commit

Permalink
ItemList: Apply class action-list where previously done by `BaseIte…
Browse files Browse the repository at this point in the history
…mList`
  • Loading branch information
nilmerg committed Mar 27, 2024
1 parent 8a82979 commit 86425e2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion library/Notifications/Widget/ItemList/ChannelList.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
class ChannelList extends BaseItemList
{
protected $defaultAttributes = ['class' => 'channel-list'];
protected $defaultAttributes = ['class' => ['action-list', 'channel-list']];

protected function getItemClass(): string
{
Expand Down
2 changes: 1 addition & 1 deletion library/Notifications/Widget/ItemList/ContactList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class ContactList extends BaseItemList
{
protected $defaultAttributes = ['class' => 'contact-list'];
protected $defaultAttributes = ['class' => ['action-list', 'contact-list']];

protected function getItemClass(): string
{
Expand Down
2 changes: 1 addition & 1 deletion library/Notifications/Widget/ItemList/EventList.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class EventList extends BaseItemList
use LoadMore;
use NoSubjectLink;

protected $defaultAttributes = ['class' => 'event-list'];
protected $defaultAttributes = ['class' => ['action-list', 'event-list']];

/** @var ResultSet */
protected $data;
Expand Down
3 changes: 1 addition & 2 deletions library/Notifications/Widget/ItemList/EventRuleList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
namespace Icinga\Module\Notifications\Widget\ItemList;

use Icinga\Module\Notifications\Common\LoadMore;
use ipl\Orm\ResultSet;
use ipl\Web\Common\BaseItemList;

class EventRuleList extends BaseItemList
{
use LoadMore;

protected $defaultAttributes = ['class' => 'event-rule-list'];
protected $defaultAttributes = ['class' => ['action-list', 'event-rule-list']];

protected function getItemClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class IncidentContactList extends BaseItemList
{
protected $defaultAttributes = ['class' => ['minimal', 'incident-contact-list']];
protected $defaultAttributes = ['class' => ['action-list', 'minimal', 'incident-contact-list']];

protected function getItemClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class IncidentHistoryList extends BaseItemList
{
protected $defaultAttributes = ['class' => 'minimal'];
protected $defaultAttributes = ['class' => ['action-list', 'minimal']];

protected function getItemClass(): string
{
Expand Down
2 changes: 1 addition & 1 deletion library/Notifications/Widget/ItemList/IncidentList.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class IncidentList extends BaseItemList
{
use NoSubjectLink;

protected $defaultAttributes = ['class' => 'incident-list'];
protected $defaultAttributes = ['class' => ['action-list', 'incident-list']];

protected function getItemClass(): string
{
Expand Down

0 comments on commit 86425e2

Please sign in to comment.