From: Laurence Maultsby Date: Wed, 1 Feb 2017 15:41:02 +0000 (-0500) Subject: Merge branch 'pkg_mgmt' into v1.1 X-Git-Tag: v1.1.0~4 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=756a58911e5ab70e42b7793ffef9807738d2f5e1;hp=8f1f42ce0339e356a170742ae44d261104cf530f Merge branch 'pkg_mgmt' into v1.1 Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js index 4ee4345b7..a69f3bba2 100644 --- a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js +++ b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js @@ -180,6 +180,7 @@ export default function EditDescriptorModelProperties(props) { const name = path.join('.'); const isEditable = true; const isGuid = Property.isGuid(property); + const isBoolean = Property.isBoolean(property); const onChange = onFormFieldValueChanged.bind(container); const isEnumeration = Property.isEnumeration(property); const isLeafRef = Property.isLeafRef(property); @@ -224,6 +225,31 @@ export default function EditDescriptorModelProperties(props) { return ; } + if (isBoolean) { + let fullFieldKey = _.isArray(fieldKey) ? fieldKey.join(':') : fieldKey; + let containerRef = container; + while (containerRef.parent) { + fullFieldKey = containerRef.parent.key + ':' + fullFieldKey; + containerRef = containerRef.parent; + } + + const options = [ + , + + ] + + // if (!isValueSet) { + const noValueDisplayText = changeCase.title(property.name); + options.unshift(); + // } + let val = value; + if(typeof(val) == 'number') { + val = value ? "TRUE" : "FALSE" + } + const isValueSet = (val != '' && val) + return ; + } + if (property['preserve-line-breaks']) { return