mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-26 04:32:44 +08:00
feat(modeling): add feedback on invalid modeling action
This commit adds the ModelingFeedback component. It hooks into modeling action rejected events and displays error messages to the user. The current behavior is to show an error message when dropping a flow node outside a participant in a collaboration. Related to #203
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
module.exports = {
|
||||
__init__: [ 'appendBehavior', 'dropBehavior', 'createBehavior', 'removeBehavior' ],
|
||||
__init__: [
|
||||
'appendBehavior',
|
||||
'createBehavior',
|
||||
'dropBehavior',
|
||||
'removeBehavior',
|
||||
'modelingFeedback'
|
||||
],
|
||||
appendBehavior: [ 'type', require('./AppendBehavior') ],
|
||||
dropBehavior: [ 'type', require('./DropBehavior') ],
|
||||
createBehavior: [ 'type', require('./CreateBehavior') ],
|
||||
removeBehavior: [ 'type', require('./RemoveBehavior') ],
|
||||
dropBehavior: [ 'type', require('./DropBehavior') ]
|
||||
modelingFeedback: [ 'type', require('./ModelingFeedback') ]
|
||||
};
|
Reference in New Issue
Block a user