Add Data Field Category Dashlet
This commit is contained in:
parent
50c477acce
commit
5e81f0c88c
|
@ -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');
|
||||
}
|
||||
}
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue