<?php

namespace ModulesGarden\Servers\OpenXchange\App\UI\Client\EmailCatchAll\Buttons;


use ModulesGarden\Servers\OpenXchange\App\UI\Client\EmailCatchAll\Modals\DeleteEmailCatchAllModal;
use ModulesGarden\Servers\OpenXchange\Core\UI\Interfaces\ClientArea;
use ModulesGarden\Servers\OpenXchange\Core\UI\Widget\Buttons\ButtonDataTableModalAction;

/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * Date: 18.09.19
 * Time: 12:59
 * Class DeleteEmailCatchAllButton
 */
class DeleteEmailCatchAllButton extends ButtonDataTableModalAction implements ClientArea
{
    protected $id    = 'deleteEmailCatchAllButton';
    protected $title = 'deleteEmailCatchAllButton';

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

}