mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-02 12:13:42 +00:00
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';
|
import { is } from '../../../util/ModelUtil';
|
||||||
|
|
||||||
var COLLAB_ERR_MSG = 'flow elements must be children of pools/participants',
|
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';
|
|
||||||
|
|
||||||
|
|
||||||
export default function ModelingFeedback(eventBus, tooltips, translate) {
|
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 = [
|
ModelingFeedback.$inject = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user