summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Widget/ItemList/HistoryListItemMinimal.php
blob: 5a7f21453382ecbb168e907a88282715e52cfc83 (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 HistoryListItemMinimal extends BaseHistoryListItem
{
    use ListItemMinimalLayout;

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

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

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