parent
85150135a6
commit
7e5f4eba14
|
@ -52,7 +52,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||||
|
|
||||||
var target;
|
var target;
|
||||||
|
|
||||||
if(type === 'bpmn:TextAnnotation') {
|
if (type === 'bpmn:TextAnnotation') {
|
||||||
target = modeling.appendTextAnnotation(element, type);
|
target = modeling.appendTextAnnotation(element, type);
|
||||||
} else {
|
} else {
|
||||||
target = modeling.appendFlowNode(element, type);
|
target = modeling.appendFlowNode(element, type);
|
||||||
|
@ -95,17 +95,20 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||||
action: function() {
|
action: function() {
|
||||||
append(element, 'bpmn:TextAnnotation');
|
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;
|
return actions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue