2023-02-23 11:51:53 +01:00

36 lines
744 B
PHP

<?php
namespace Icinga\Module\Director\Dashboard\Dashlet;
use Icinga\Module\Director\Auth\Permission;
class NotificationsDashlet extends Dashlet
{
protected $icon = 'bell';
protected $requiredStats = ['notification'];
public function getTitle()
{
return $this->translate('Notifications');
}
public function getSummary()
{
return $this->translate(
'Schedule your notifications. Define who should be notified, when,'
. ' and for which kind of problem'
);
}
public function listRequiredPermissions()
{
return [Permission::NOTIFICATIONS];
}
public function getUrl()
{
return 'director/dashboard?name=notifications';
}
}