feat(context-pad): add delete button

See #118
This commit is contained in:
jdotzki 2014-08-29 16:03:08 +02:00
parent 2c5548423b
commit e487d6d811
1 changed files with 7 additions and 12 deletions

View File

@ -95,21 +95,16 @@ 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) {
console.log('action.delete', e); modeling.removeShape(element);
} }
} }
}); });
*/
}
return actions; return actions;
}; };