Add Data Field Category Dashlet

This commit is contained in:
Valentina Da Rold 2019-10-01 16:56:02 +02:00
parent 50c477acce
commit 5e81f0c88c
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,30 @@
<?php
namespace Icinga\Module\Director\Dashboard\Dashlet;
class DatafieldCategoryDashlet extends Dashlet
{
protected $icon = 'th-list';
public function getTitle()
{
return $this->translate('Data Field Categories');
}
public function getSummary()
{
return $this->translate(
'Categories bring structure to your Data Fields'
);
}
public function getUrl()
{
return 'director/data/fieldcategories';
}
public function listRequiredPermissions()
{
return array('director/admin');
}
}

View File

@ -4,11 +4,12 @@ namespace Icinga\Module\Director\Dashboard;
class DataDashboard extends Dashboard
{
protected $dashletNames = array(
protected $dashletNames = [
'Datafield',
'DatafieldCategory',
'Datalist',
'Customvar'
);
];
public function getTitle()
{