Services: ooops

This commit is contained in:
Thomas Gelf 2015-06-29 11:16:29 +02:00
parent 3d9fb846ed
commit fe7cb41bac
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class Director_ListController extends ActionController
public function servicesAction() public function servicesAction()
{ {
$this->setHostTabs()->activate('services'); $this->setServiceTabs()->activate('services');
$this->view->addLink = $this->view->qlink( $this->view->addLink = $this->view->qlink(
$this->translate('Add Service'), $this->translate('Add Service'),
'director/object/service' 'director/object/service'
@ -53,7 +53,7 @@ class Director_ListController extends ActionController
public function servicegroupsAction() public function servicegroupsAction()
{ {
$this->setHostTabs()->activate('servicegroups'); $this->setServiceTabs()->activate('servicegroups');
$this->view->addLink = $this->view->qlink( $this->view->addLink = $this->view->qlink(
$this->translate('Add Servicegroup'), $this->translate('Add Servicegroup'),
'director/object/servicegroup' 'director/object/servicegroup'

View File

@ -60,7 +60,7 @@ abstract class ActionController extends Controller
protected function setServiceTabs() protected function setServiceTabs()
{ {
$this->view->tabs = Widget::create('tabs')->add('services', array( $this->view->tabs = Widget::create('tabs')->add('services', array(
'label' => $this->translate('Hosts'), 'label' => $this->translate('Services'),
'url' => 'director/list/services') 'url' => 'director/list/services')
)->add('servicegroups', array( )->add('servicegroups', array(
'label' => $this->translate('Servicegroups'), 'label' => $this->translate('Servicegroups'),