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.
in their respective forms, that will appear upon clicking edit icon on the node tile
  • Loading branch information
raviks789 committed Sep 1, 2022
1 parent 6f81103 commit 4702eab
Showing 1 changed file with 1 addition and 1 deletion.
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 4702eab

Please sign in to comment.