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 Jul 25, 2023
1 parent 4205068 commit 5a18138
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 5a18138

Please sign in to comment.