mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
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;
|
namespace Icinga\Module\Director\Controllers;
|
||||||
|
|
||||||
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
||||||
|
use ipl\Html\Html;
|
||||||
|
|
||||||
class DependenciesController extends ObjectsController
|
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()
|
public function getUrl()
|
||||||
{
|
{
|
||||||
return 'director/dependencies';
|
return 'director/dependencies/applyrules';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user