mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 21:34:28 +02:00
Fix tabs of new/update/remove dashlet
This commit is contained in:
parent
7ede8124cb
commit
7aac92a86f
@ -37,7 +37,11 @@ class DashboardController extends ActionController
|
|||||||
public function newDashletAction()
|
public function newDashletAction()
|
||||||
{
|
{
|
||||||
$form = new DashletForm();
|
$form = new DashletForm();
|
||||||
$this->createTabs();
|
$this->getTabs()->add('new-dashlet', array(
|
||||||
|
'active' => true,
|
||||||
|
'label' => $this->translate('New Dashlet'),
|
||||||
|
'url' => Url::fromRequest()
|
||||||
|
));
|
||||||
$dashboard = $this->dashboard;
|
$dashboard = $this->dashboard;
|
||||||
$form->setDashboard($dashboard);
|
$form->setDashboard($dashboard);
|
||||||
if ($this->_request->getParam('url')) {
|
if ($this->_request->getParam('url')) {
|
||||||
@ -77,7 +81,11 @@ class DashboardController extends ActionController
|
|||||||
|
|
||||||
public function updateDashletAction()
|
public function updateDashletAction()
|
||||||
{
|
{
|
||||||
$this->createTabs();
|
$this->getTabs()->add('update-dashlet', array(
|
||||||
|
'active' => true,
|
||||||
|
'label' => $this->translate('Update Dashlet'),
|
||||||
|
'url' => Url::fromRequest()
|
||||||
|
));
|
||||||
$dashboard = $this->dashboard;
|
$dashboard = $this->dashboard;
|
||||||
$form = new DashletForm();
|
$form = new DashletForm();
|
||||||
$form->setDashboard($dashboard);
|
$form->setDashboard($dashboard);
|
||||||
@ -145,7 +153,11 @@ class DashboardController extends ActionController
|
|||||||
public function removeDashletAction()
|
public function removeDashletAction()
|
||||||
{
|
{
|
||||||
$form = new ConfirmRemovalForm();
|
$form = new ConfirmRemovalForm();
|
||||||
$this->createTabs();
|
$this->getTabs()->add('remove-dashlet', array(
|
||||||
|
'active' => true,
|
||||||
|
'label' => $this->translate('Remove Dashlet'),
|
||||||
|
'url' => Url::fromRequest()
|
||||||
|
));
|
||||||
$dashboard = $this->dashboard;
|
$dashboard = $this->dashboard;
|
||||||
if (! $this->_request->getParam('pane')) {
|
if (! $this->_request->getParam('pane')) {
|
||||||
throw new Zend_Controller_Action_Exception(
|
throw new Zend_Controller_Action_Exception(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user