chore(modeling): drop dead code
Remove modeling feedback on paste rejected. That event is long gone, as we two-step copy and paste nowadays.
This commit is contained in:
parent
3ff287266c
commit
b75f1c2cb7
|
@ -1,8 +1,6 @@
|
|||
import { is } from '../../../util/ModelUtil';
|
||||
|
||||
var COLLAB_ERR_MSG = 'flow elements must be children of pools/participants',
|
||||
PROCESS_ERR_MSG = 'participants cannot be pasted onto a non-empty process diagram';
|
||||
|
||||
var COLLAB_ERR_MSG = 'flow elements must be children of pools/participants';
|
||||
|
||||
export default function ModelingFeedback(eventBus, tooltips, translate) {
|
||||
|
||||
|
@ -28,19 +26,6 @@ export default function ModelingFeedback(eventBus, tooltips, translate) {
|
|||
}
|
||||
});
|
||||
|
||||
eventBus.on([ 'elements.paste.rejected' ], function(event) {
|
||||
var context = event.context,
|
||||
position = context.position,
|
||||
target = context.target;
|
||||
|
||||
if (is(target, 'bpmn:Collaboration')) {
|
||||
showError(position, translate(COLLAB_ERR_MSG));
|
||||
}
|
||||
|
||||
if (is(target, 'bpmn:Process')) {
|
||||
showError(position, translate(PROCESS_ERR_MSG), 3000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ModelingFeedback.$inject = [
|
||||
|
|
Loading…
Reference in New Issue