<?php

namespace ModulesGarden\Servers\ZimbraEmail\App\UI\Client\DomainAlias\Buttons;


use ModulesGarden\Servers\ZimbraEmail\App\UI\Client\DomainAlias\Modals\DeleteDomainAliasModal;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Interfaces\ClientArea;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Buttons\ButtonDataTableModalAction;

/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * Date: 02.10.19
 * Time: 14:24
 * Class DeleteDomainAliasButton
 */
class DeleteDomainAliasButton extends ButtonDataTableModalAction implements ClientArea
{
    protected $id    = 'deleteDomainAliasButton';
    protected $title = 'deleteDomainAliasButton';

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