diff --git a/lib/features/context-pad/ContextPadProvider.js b/lib/features/context-pad/ContextPadProvider.js index 2fcb8eca..85bbd4e7 100644 --- a/lib/features/context-pad/ContextPadProvider.js +++ b/lib/features/context-pad/ContextPadProvider.js @@ -52,7 +52,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { var target; - if(type === 'bpmn:TextAnnotation') { + if (type === 'bpmn:TextAnnotation') { target = modeling.appendTextAnnotation(element, type); } else { target = modeling.appendFlowNode(element, type); @@ -95,17 +95,20 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { action: function() { append(element, 'bpmn:TextAnnotation'); } - }, - 'action.delete': { - imageUrl: 'data:image/png;base64,' + images.TRASH, - action: function(e) { - modeling.removeShape(element); - } } }); } + _.extend(actions, { + 'action.delete': { + imageUrl: 'data:image/png;base64,' + images.TRASH, + action: function(e) { + modeling.removeShape(element); + } + } + }); + return actions; };