summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Widget/ItemList/NotificationListItemMinimal.php
blob: dd6d2261292ae8bc22003a9c02829b3fe778117d (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(): void
    {
        parent::init();

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

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