[icinga-checkins] icinga.org: icingaweb2-module-director/master: ServicesController: remove Services tab

git at icinga.org git at icinga.org
Tue Aug 23 18:07:06 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: cb59c61d66ef95dbe706392ce0dcab80c009ad45
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=cb59c61d66ef95dbe706392ce0dcab80c009ad45

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Aug 23 16:06:05 2016 +0000

ServicesController: remove Services tab

fixes #12324

---

 application/controllers/ServicesController.php |    6 ++++++
 configuration.php                              |    2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/application/controllers/ServicesController.php b/application/controllers/ServicesController.php
index 47bd27a..035cb18 100644
--- a/application/controllers/ServicesController.php
+++ b/application/controllers/ServicesController.php
@@ -6,6 +6,12 @@ use Icinga\Module\Director\Web\Controller\ObjectsController;
 
 class ServicesController extends ObjectsController
 {
+    public function init()
+    {
+        parent::init();
+        $this->view->tabs->remove('objects');
+    }
+
     public function indexAction()
     {
         $r = $this->getRequest();
diff --git a/configuration.php b/configuration.php
index c107c48..fc0ce62 100644
--- a/configuration.php
+++ b/configuration.php
@@ -34,7 +34,7 @@ $section = $this->menuSection(
 ));
 
 $section->add($this->translate('Hosts'))->setUrl('director/hosts')->setPriority(30);
-$section->add($this->translate('Services'))->setUrl('director/services')->setPriority(40);
+$section->add($this->translate('Services'))->setUrl('director/services/templates')->setPriority(40);
 $section->add($this->translate('Commands'))->setUrl('director/commands')->setPriority(50);
 $section->add($this->translate('Users'))->setUrl('director/users')->setPriority(70);
 $section->add($this->translate('Automation'))



More information about the icinga-checkins mailing list