mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-28 18:09:33 -05:00
parent
ba08817981
commit
cad29d4d32
1 changed files with 6 additions and 10 deletions
|
|
@ -311,19 +311,15 @@ class NodeTile extends BaseHtmlElement
|
|||
Html::tag('i', ['class' => 'icon icon-edit'])
|
||||
));
|
||||
|
||||
$addUrl = $baseUrl->with([
|
||||
'node' => $this->node->getName(),
|
||||
'action' => 'add'
|
||||
]);
|
||||
$addUrl->getParams()->addValues('path', $this->path);
|
||||
$this->actions()->add(Html::tag(
|
||||
'a',
|
||||
[
|
||||
'href' => $this->node instanceof ImportedNode
|
||||
? $baseUrl->with([
|
||||
'config' => $this->node->getConfigName(),
|
||||
'node' => $this->node->getNodeName(),
|
||||
'action' => 'add'
|
||||
])
|
||||
: $baseUrl->with([
|
||||
'node' => $this->node->getName(),
|
||||
'action' => 'add'
|
||||
]),
|
||||
'href' => $addUrl,
|
||||
'title' => mt('businessprocess', 'Add a new sub-node to this business process')
|
||||
],
|
||||
Html::tag('i', ['class' => 'icon icon-plus'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue