mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
tree: Don't allow to change imported nodes
The remaining ui and navigation flow doesn't incorporate differing bp configurations
This commit is contained in:
parent
2123b41f83
commit
0194f9afe9
1 changed files with 3 additions and 3 deletions
|
|
@ -169,13 +169,13 @@ class TreeRenderer extends Renderer
|
|||
$div->add(Html::tag('span', ['class' => 'op'], $node->operatorHtml()));
|
||||
}
|
||||
|
||||
if (! $this->isLocked()) {
|
||||
if (! $this->isLocked() && $node->getBusinessProcess()->getName() === $this->getBusinessProcess()->getName()) {
|
||||
$div->add($this->getActionIcons($bp, $node));
|
||||
}
|
||||
|
||||
$ul = Html::tag('ul', [
|
||||
'class' => ['bp', 'sortable'],
|
||||
'data-sortable-disabled' => $this->isLocked() ? 'true' : 'false',
|
||||
'data-sortable-disabled' => $this->isLocked() || $node->getBusinessProcess()->getName() !== $this->getBusinessProcess()->getName() ? 'true' : 'false',
|
||||
'data-sortable-invert-swap' => 'true',
|
||||
'data-sortable-data-id-attr' => 'id',
|
||||
'data-sortable-draggable' => '.movable',
|
||||
|
|
@ -222,7 +222,7 @@ class TreeRenderer extends Renderer
|
|||
$link->getAttributes()->set('data-base-target', '_next');
|
||||
$li->add($link);
|
||||
|
||||
if (! $this->isLocked()) {
|
||||
if (! $this->isLocked() && $node->getBusinessProcess()->getName() === $this->getBusinessProcess()->getName()) {
|
||||
$li->add($this->getActionIcons($bp, $node));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue