<?php
/**
 * Class DeleteListButton
 * User: ThurData
 * Date: 2019-10-01
 * Time: 11:16
 * @package ThurData\Servers\KerioEmail\App\UI\Client\DistributionList\Buttons
 */

namespace ThurData\Servers\KerioEmail\App\UI\Client\DistributionList\Buttons;


use ThurData\Servers\KerioEmail\App\UI\Client\DistributionList\Modals\DeleteListModal;
use ThurData\Servers\KerioEmail\Core\UI\Interfaces\ClientArea;
use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ButtonDataTableModalAction;

class DeleteListButton extends ButtonDataTableModalAction implements ClientArea
{
    protected $id    = 'deleteListButton';
    protected $title = 'deleteListButton';

    public function initContent()
    {
        $this->switchToRemoveBtn();
        $this->initLoadModalAction(new DeleteListModal());
    }
}