fix(context-pad): make all bpmn elements deletable

Related to #118
This commit is contained in:
Nico Rehwaldt 2014-09-04 13:28:35 +02:00
parent 85150135a6
commit 7e5f4eba14
1 changed files with 10 additions and 7 deletions

View File

@ -95,7 +95,12 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
action: function() { action: function() {
append(element, 'bpmn:TextAnnotation'); append(element, 'bpmn:TextAnnotation');
} }
}, }
});
}
_.extend(actions, {
'action.delete': { 'action.delete': {
imageUrl: 'data:image/png;base64,' + images.TRASH, imageUrl: 'data:image/png;base64,' + images.TRASH,
action: function(e) { action: function(e) {
@ -104,8 +109,6 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
} }
}); });
}
return actions; return actions;
}; };