Skip to content

Commit

Permalink
Show the delete/cancel icon only for the imported node
Browse files Browse the repository at this point in the history
Imported nodes will not have edit icon on their node tile. Hence, it is required to show the delete icon in their node tile.
As the other nodes will have edit icon and their edit forms contain the delete button, it is not necessary to show the
delete/cancel icon in their node tiles.
  • Loading branch information
raviks789 committed Sep 20, 2022
1 parent 0eb5545 commit fee17e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions application/forms/ProcessForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,6 @@ protected function onRequest()
}
}

protected function getNode(BpConfig $bp, $nodeName)
{
if ($nodeName) {
return $bp->getNode($nodeName);
} else {
return null;
}
}

public function onSuccess()
{
$changes = ProcessChanges::construct($this->bp, $this->session);
Expand Down
2 changes: 1 addition & 1 deletion library/Businessprocess/Renderer/TileRenderer/NodeTile.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ protected function addActionLinks()
}
}

if ($this->renderer->getBusinessProcess()->getMetadata()->canModify()) {
if ($this->renderer->getBusinessProcess()->getMetadata()->canModify() && $this->node instanceof ImportedNode) {
$params = array(
'action' => 'delete',
'deletenode' => $this->node->getName(),
Expand Down

0 comments on commit fee17e1

Please sign in to comment.