summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Widget/ItemList/NotificationListItemMinimal.php
blob: dcda5fd0ea14c47725590db47cf912177df4ca3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */

namespace Icinga\Module\Icingadb\Widget\ItemList;

use Icinga\Module\Icingadb\Common\ListItemMinimalLayout;
use ipl\Web\Widget\StateBall;

class NotificationListItemMinimal extends BaseNotificationListItem
{
    use ListItemMinimalLayout;

    protected function init()
    {
        parent::init();

        if ($this->list->isCaptionDisabled()) {
            $this->setCaptionDisabled();
        }
    }

    protected function getStateBallSize(): string
    {
        return StateBall::SIZE_BIG;
    }
}