feat(editor-actions): add set color editor action
Related to camunda/camunda-modeler#445
This commit is contained in:
parent
7f99263a5e
commit
c308151474
|
@ -72,6 +72,13 @@ function BpmnEditorActions(
|
|||
alignElements.trigger(aligneableElements, type);
|
||||
}
|
||||
},
|
||||
setColor: function(opts) {
|
||||
var currentSelection = selection.get();
|
||||
|
||||
if (currentSelection.length) {
|
||||
modeling.setColor(currentSelection, opts);
|
||||
}
|
||||
},
|
||||
directEditing: function() {
|
||||
var currentSelection = selection.get();
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ describe('features - keyboard', function() {
|
|||
|
||||
it('should include triggers inside editorActions', inject(function(editorActions) {
|
||||
// then
|
||||
expect(editorActions.length()).to.equal(18);
|
||||
expect(editorActions.length()).to.equal(19);
|
||||
}));
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue