Notifications: make tabs fit dashlets, no objects
This commit is contained in:
parent
3eb3d82f44
commit
aca6d812f1
|
@ -2,10 +2,23 @@
|
|||
|
||||
namespace Icinga\Module\Director\Controllers;
|
||||
|
||||
use Icinga\Exception\NotFoundError;
|
||||
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
||||
|
||||
class NotificationsController extends ObjectsController
|
||||
{
|
||||
protected function addObjectsTabs()
|
||||
{
|
||||
$res = parent::addObjectsTabs();
|
||||
$this->tabs()->remove('index');
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
throw new NotFoundError('Not found');
|
||||
}
|
||||
|
||||
protected function checkDirectorPermissions()
|
||||
{
|
||||
$this->assertPermission('director/notifications');
|
||||
|
|
|
@ -4,12 +4,12 @@ namespace Icinga\Module\Director\Dashboard;
|
|||
|
||||
class NotificationsDashboard extends Dashboard
|
||||
{
|
||||
protected $dashletNames = array(
|
||||
'NotificationApply',
|
||||
protected $dashletNames = [
|
||||
'NotificationTemplate',
|
||||
'NotificationApply',
|
||||
'UserObject',
|
||||
'TimeperiodObject'
|
||||
);
|
||||
];
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue