mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
RenderedProcessActionBar: Re-introduce Config link for subprocess nodes
Having to navigate a level up to edit the currently showing process is tedious, to say the least. refs #78
This commit is contained in:
parent
b932fa8415
commit
7d199a94ea
1 changed files with 26 additions and 11 deletions
|
|
@ -92,17 +92,32 @@ class RenderedProcessActionBar extends ActionBar
|
|||
));
|
||||
}
|
||||
|
||||
if ($renderer->wantsRootNodes() && (($hasChanges || (! $renderer->isLocked())) && $meta->canModify())) {
|
||||
$this->add(Html::tag(
|
||||
'a',
|
||||
[
|
||||
'data-base-target' => '_next',
|
||||
'href' => Url::fromPath('businessprocess/process/config', $this->currentProcessParams($url)),
|
||||
'title' => mt('businessprocess', 'Modify this process'),
|
||||
'class' => 'icon-wrench'
|
||||
],
|
||||
mt('businessprocess', 'Config')
|
||||
));
|
||||
if (($hasChanges || ! $renderer->isLocked()) && $meta->canModify()) {
|
||||
if ($renderer->wantsRootNodes()) {
|
||||
$this->add(Html::tag(
|
||||
'a',
|
||||
[
|
||||
'data-base-target' => '_next',
|
||||
'href' => Url::fromPath('businessprocess/process/config', $this->currentProcessParams($url)),
|
||||
'title' => mt('businessprocess', 'Modify this process'),
|
||||
'class' => 'icon-wrench'
|
||||
],
|
||||
mt('businessprocess', 'Config')
|
||||
));
|
||||
} else {
|
||||
$this->add(Html::tag(
|
||||
'a',
|
||||
[
|
||||
'href' => $url->with([
|
||||
'action' => 'edit',
|
||||
'editnode' => $url->getParam('node')
|
||||
])->getAbsoluteUrl(),
|
||||
'title' => mt('businessprocess', 'Modify this process'),
|
||||
'class' => 'icon-wrench'
|
||||
],
|
||||
mt('businessprocess', 'Config')
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
if (($hasChanges || (! $renderer->isLocked())) && $meta->canModify()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue