Dependencies: hide single objects, mark the...
...feature as experimental, so we can merge it to master
This commit is contained in:
parent
c277a5be53
commit
147946e965
|
@ -3,7 +3,25 @@
|
|||
namespace Icinga\Module\Director\Controllers;
|
||||
|
||||
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
||||
use ipl\Html\Html;
|
||||
|
||||
class DependenciesController extends ObjectsController
|
||||
{
|
||||
protected function addObjectsTabs()
|
||||
{
|
||||
$res = parent::addObjectsTabs();
|
||||
$this->tabs()->remove('index');
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function applyrulesAction()
|
||||
{
|
||||
$this->content()->add(Html::tag(
|
||||
'p',
|
||||
['class' => 'warning'],
|
||||
$this->translate('This feature is still experimental')
|
||||
));
|
||||
|
||||
parent::applyrulesAction();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,6 @@ class DependencyObjectDashlet extends Dashlet
|
|||
|
||||
public function getUrl()
|
||||
{
|
||||
return 'director/dependencies';
|
||||
return 'director/dependencies/applyrules';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue