feat(context-pad): add text annotation option for data objects/stores
Closes #564
This commit is contained in:
parent
d3ad9cfea6
commit
f15647edfd
|
@ -279,7 +279,12 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|||
});
|
||||
}
|
||||
|
||||
if (isAny(businessObject, [ 'bpmn:FlowNode', 'bpmn:InteractionNode' ]) ) {
|
||||
if (isAny(businessObject, [
|
||||
'bpmn:FlowNode',
|
||||
'bpmn:InteractionNode',
|
||||
'bpmn:DataObjectReference',
|
||||
'bpmn:DataStoreReference'
|
||||
]) ) {
|
||||
|
||||
assign(actions, {
|
||||
'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation'),
|
||||
|
|
|
@ -250,9 +250,20 @@ describe('features - context-pad', function() {
|
|||
|
||||
expectContextPadEntries('DataStoreReference', [
|
||||
'connect',
|
||||
'append.text-annotation',
|
||||
'!replace',
|
||||
'!append.end-event',
|
||||
'!append.text-annotation'
|
||||
'!append.end-event'
|
||||
]);
|
||||
}));
|
||||
|
||||
|
||||
it('should provide DataObjectReference entries', inject(function() {
|
||||
|
||||
expectContextPadEntries('DataObjectReference', [
|
||||
'connect',
|
||||
'append.text-annotation',
|
||||
'!replace',
|
||||
'!append.end-event'
|
||||
]);
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue