in src/app/devices/cloudToDeviceMessage/components/cloudToDeviceMessage.tsx [343:373]
text: t(ResourceKeys.cloudToDeviceMessage.properties.systemProperties.contentEncoding.utf32)
}
];
return (
<Dropdown
options={options}
onChange={onDropdownSelectedKeyChanged}
/>);
};
const onSelectionChanged = () => {
setSelectedIndices(new Set(selection.getSelectedIndices()));
};
const handleAddCustomProperty = () => {
const newIndex = propertyIndex + 1;
const newProperties = [...properties, {isSystemProperty: false, index: newIndex, keyName: '', value: ''}];
setProperties(newProperties);
setPropertyIndex(newIndex);
};
const handleAddSystemProperty = (keyName: string) => () => {
const newIndex = propertyIndex + 1;
const newProperties = [...properties, {isSystemProperty: true, index: newIndex, keyName, value: ''}];
setProperties(newProperties);
setPropertyIndex(newIndex);
};
const handleDelete = () => {
const updatedProperties = [];
for (let i = 0; i < properties.length; i++) {