parent
8f4cbcddaa
commit
b7ad57e348
|
@ -400,6 +400,12 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|||
});
|
||||
}
|
||||
|
||||
if (is(businessObject, 'bpmn:Group')) {
|
||||
assign(actions, {
|
||||
'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation')
|
||||
});
|
||||
}
|
||||
|
||||
// delete element entry, only show if allowed by rules
|
||||
var deleteAllowed = rules.allowed('elements.delete', { elements: [ element ] });
|
||||
|
||||
|
|
|
@ -11,7 +11,11 @@
|
|||
<bpmn2:dataStoreReference id="DataStoreReference" />
|
||||
<bpmn2:dataObject id="DataObject_1" name="Data Object 1"/>
|
||||
<bpmn2:dataObjectReference id="DataObjectReference" dataObjectRef="DataObject_1"/>
|
||||
<bpmn2:group id="Group_1" categoryValueRef="CategoryValue_1" />
|
||||
</bpmn2:process>
|
||||
<bpmn2:category id="Category_1">
|
||||
<bpmn2:categoryValue id="CategoryValue_1" />
|
||||
</bpmn2:category>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
|
||||
<bpmndi:BPMNShape id="_BPMNShape_EventBasedGateway_2" bpmnElement="EventBasedGateway_1">
|
||||
|
@ -47,6 +51,9 @@
|
|||
<dc:Bounds height="21.0" width="149.0" x="257.0" y="367.0"/>
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Group_1_di" bpmnElement="Group_1">
|
||||
<dc:Bounds x="40" y="410" width="190" height="110" />
|
||||
</bpmndi:BPMNShape>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn2:definitions>
|
|
@ -281,6 +281,16 @@ describe('features - context-pad', function() {
|
|||
]);
|
||||
}));
|
||||
|
||||
|
||||
it('should provide Group entries', inject(function() {
|
||||
|
||||
expectContextPadEntries('Group_1', [
|
||||
'append.text-annotation',
|
||||
'delete',
|
||||
'!replace'
|
||||
]);
|
||||
}));
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue