UNPKG

bpmn-js-properties-panel

Version:
21 lines (13 loc) 468 B
'use strict'; var nameEntryFactory = require('./implementation/Name'), is = require('bpmn-js/lib/util/ModelUtil').is; module.exports = function(group, element, translate) { if (!is(element, 'bpmn:Collaboration')) { var options; if (is(element, 'bpmn:TextAnnotation')) { options = { modelProperty: 'text' }; } // name group.entries = group.entries.concat(nameEntryFactory(element, options, translate)); } };