X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2FEditDescriptorModelProperties.js;h=ed29b265afeb7154b98e93bc0ddd787b1faa8de9;hb=b78cde7361f4c72441e3dae0b14e116f62895698;hp=22ba1791f0a6b9010ec65949345416163d80922d;hpb=2da8b7a246ba17396c5bc218a0b7f1685fb8d304;p=osm%2FUI.git diff --git a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js index 22ba1791f..ed29b265a 100644 --- a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js +++ b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js @@ -183,7 +183,6 @@ export default function EditDescriptorModelProperties(props) { let catalogs = cds.getTransientCatalogs(); const pathToProperty = path.join('.'); - const isEditable = true; const isGuid = Property.isGuid(property); const isBoolean = Property.isBoolean(property); const isEnumeration = Property.isEnumeration(property); @@ -214,7 +213,7 @@ export default function EditDescriptorModelProperties(props) { processFieldValueChange.bind(container, pathToProperty), 2000, {maxWait: 5000})); // max wait for short-name // create an onChange event handler for a select field for the specified field path const onSelectChange = changeHandler.bind(null, processFieldValueChange.bind(container, pathToProperty)); - + if (isEnumeration) { const enumeration = Property.getEnumeration(property, value); const options = enumeration.map((d, i) => { @@ -230,17 +229,17 @@ export default function EditDescriptorModelProperties(props) { options.unshift(); } return ( - @@ -265,17 +264,17 @@ export default function EditDescriptorModelProperties(props) { options.unshift(); } return ( - @@ -298,28 +297,28 @@ export default function EditDescriptorModelProperties(props) { } const isValueSet = (val != '' && val) return ( - ); } - + if (Property.isLeafEmpty(property)) { // A null value indicates the leaf exists (as opposed to undefined). // We stick in a string when the user actually sets it to simplify things // but the correct thing happens when we serialize to user data - let isEmptyLeafPresent = (value === EMPTY_LEAF_PRESENT || value === null); + let isEmptyLeafPresent = (value === EMPTY_LEAF_PRESENT || value === null); let present = isEmptyLeafPresent ? EMPTY_LEAF_PRESENT : ""; const options = [ , @@ -327,17 +326,17 @@ export default function EditDescriptorModelProperties(props) { ] return ( - @@ -346,25 +345,25 @@ export default function EditDescriptorModelProperties(props) { if (property['preserve-line-breaks']) { return ( -