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,24 +95,19 @@ 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) {
console.log('action.delete', e);
}
}
});
*/
return actions;
};
module.exports = ContextPadProvider;
module.exports = ContextPadProvider;