Notifications: make tabs fit dashlets, no objects

This commit is contained in:
Thomas Gelf 2017-07-13 11:49:55 +02:00
parent 3eb3d82f44
commit aca6d812f1
2 changed files with 16 additions and 3 deletions

View File

@ -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');

View File

@ -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()
{