Skip to content

Commit

Permalink
Fix tabs for the details action
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Jul 15, 2019
1 parent 15cc4ad commit 4f70d55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/controllers/HostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class HostsController extends IdoController
{
public function indexAction()
{
$this->getTabs()->activate('cube/hosts');
$this->createTabs()->activate('cube/hosts');

$this->renderCube();
}
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/ServicesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ServicesController extends IdoController
{
public function indexAction()
{
$this->getTabs()->activate('cube/services');
$this->createTabs()->activate('cube/services');

$this->renderCube();
}
Expand Down
4 changes: 2 additions & 2 deletions library/Cube/Web/IdoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

abstract class IdoController extends Controller
{
public function getTabs()
public function createTabs()
{
return parent::getTabs()
return $this->getTabs()
->add('cube/hosts', [
'label' => $this->translate('Hosts'),
'url' => 'cube/hosts' . ($this->params->toString() === '' ? '' : '?' . $this->params->toString())
Expand Down

0 comments on commit 4f70d55

Please sign in to comment.