feat(palette): integrate lane symbol
This commit is contained in:
parent
d520574d1a
commit
fe63cb87a4
|
@ -58,6 +58,10 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
|
|||
create.start(event, elementFactory.createParticipantShape(collapsed));
|
||||
}
|
||||
|
||||
function createLane(event) {
|
||||
create.start(event, elementFactory.createShape({ type: 'bpmn:Lane' }));
|
||||
}
|
||||
|
||||
assign(actions, {
|
||||
'lasso-tool': {
|
||||
group: 'tools',
|
||||
|
@ -110,6 +114,15 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
|
|||
dragstart: createParticipant,
|
||||
click: createParticipant
|
||||
}
|
||||
},
|
||||
'create.lane': {
|
||||
group: 'collaboration',
|
||||
className: 'icon-lane',
|
||||
title: 'Create Lane',
|
||||
action: {
|
||||
dragstart: createLane,
|
||||
click: createLane
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ describe('features/palette', function() {
|
|||
var entries = domQuery.all('.entry', paletteElement);
|
||||
|
||||
// then
|
||||
expect(entries.length).to.equal(9);
|
||||
expect(entries.length).to.equal(10);
|
||||
}));
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue