mirror of
https://github.com/sartography/bpmn-js-spiffworkflow.git
synced 2025-02-23 21:18:12 +00:00
Merge branch 'feature/inherited-data-objects' into main
This commit is contained in:
commit
82260144f9
@ -255,40 +255,6 @@ function MessageCorrelationKeySelect(props) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function CorrelationPropertyIdTextField(props) {
|
|
||||||
const {
|
|
||||||
id,
|
|
||||||
element,
|
|
||||||
correlationPropertyModdleElement,
|
|
||||||
commandStack,
|
|
||||||
translate,
|
|
||||||
} = props;
|
|
||||||
|
|
||||||
const debounce = useService('debounceInput');
|
|
||||||
const setValue = (value) => {
|
|
||||||
commandStack.execute('element.updateModdleProperties', {
|
|
||||||
element,
|
|
||||||
moddleElement: correlationPropertyModdleElement,
|
|
||||||
properties: {
|
|
||||||
id: value,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const getValue = () => {
|
|
||||||
return correlationPropertyModdleElement.id;
|
|
||||||
};
|
|
||||||
|
|
||||||
return TextFieldEntry({
|
|
||||||
element,
|
|
||||||
id: `${id}-id-textField`,
|
|
||||||
label: translate('ID'),
|
|
||||||
getValue,
|
|
||||||
setValue,
|
|
||||||
debounce,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function CorrelationPropertyNameTextField(props) {
|
function CorrelationPropertyNameTextField(props) {
|
||||||
const {
|
const {
|
||||||
id,
|
id,
|
||||||
@ -305,6 +271,7 @@ function CorrelationPropertyNameTextField(props) {
|
|||||||
moddleElement: correlationPropertyModdleElement,
|
moddleElement: correlationPropertyModdleElement,
|
||||||
properties: {
|
properties: {
|
||||||
name: value,
|
name: value,
|
||||||
|
id: value,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user