Dependencies: hide single objects, mark the...

...feature as experimental, so we can merge it to master
This commit is contained in:
Thomas Gelf 2017-09-28 09:21:58 +02:00
parent c277a5be53
commit 147946e965
2 changed files with 19 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -21,6 +21,6 @@ class DependencyObjectDashlet extends Dashlet
public function getUrl()
{
return 'director/dependencies';
return 'director/dependencies/applyrules';
}
}