mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
36 lines
744 B
PHP
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';
|
|
}
|
|
}
|