Skip to content

Commit

Permalink
Add base target _main to list controller tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Oct 16, 2023
1 parent 2622b8e commit cfe04f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/TemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class TemplatesController extends Controller
public function indexAction()
{
$this->createTabs()->activate('templates');
$this->getTabs()->getAttributes()->set('data-base-target', '_main');

$canManage = $this->hasPermission('reporting/templates');

Expand Down Expand Up @@ -50,7 +51,6 @@ public function indexAction()

$this->addControl($sortControl);


$tableRows = [];

/** @var Model\Template $template */
Expand Down
1 change: 1 addition & 0 deletions application/controllers/TimeframesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class TimeframesController extends Controller
public function indexAction()
{
$this->createTabs()->activate('timeframes');
$this->getTabs()->getAttributes()->set('data-base-target', '_main');

$canManage = $this->hasPermission('reporting/timeframes');

Expand Down

0 comments on commit cfe04f2

Please sign in to comment.